Skip to content

Commit 64a9cf4

Browse files
committed
Merge branch 'isa_jenkins_print_info' into 'devel'
feat(jenkins): print hostname and last commit message on start of component verification See merge request ndk/ndk-fpga!241
2 parents 5270d12 + 9f21c95 commit 64a9cf4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/jenkins/common.jenkins

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def commonPrekladVerRun(COMPONENTS) {
2323

2424
def failed = []
2525
//load new fpga_version and set default simulator
26+
def print_info = "hostname;"
27+
print_info += "git --no-pager log -n 1;"
2628
def toolsel = "set +x\n"
2729
toolsel += "source fpga_version.sh\n"
2830
toolsel += "fpga_sim -d\n"
@@ -44,6 +46,7 @@ def commonPrekladVerRun(COMPONENTS) {
4446
// grep used to detect successfull run, each verification should have the following line before the last $stop:
4547
// $write("Verification finished successfully!\n");
4648
//
49+
sh "${print_info}"
4750
sh "${toolsel}${command}"
4851
}
4952
}
@@ -95,6 +98,8 @@ def commonPrekladMultiVerRun(COMPONENTS, ofm_path = pwd()) {
9598

9699
def failed = []
97100
//load new fpga_version and set default simulator
101+
def print_info = "hostname;"
102+
print_info += "git --no-pager log -n 1;"
98103
def toolsel = "set +x\n"
99104
toolsel += "source fpga_version.sh\n"
100105
toolsel += "fpga_sim -d\n"
@@ -117,6 +122,7 @@ def commonPrekladMultiVerRun(COMPONENTS, ofm_path = pwd()) {
117122
stage("$name") {
118123
dir("$path") {
119124
def command = "python3 $multi_ver $fdo $pkg $settings -p \"$name\""
125+
sh "${print_info}"
120126
sh "${toolsel}${command}"
121127
}
122128
}
@@ -166,6 +172,8 @@ def commonPrekladHarpRun(COMPONENTS, ofm_path = pwd()) {
166172

167173
def failed = []
168174
//load new fpga_version and set default simulator
175+
def print_info = "hostname;"
176+
print_info += "git --no-pager log -n 1;"
169177
def toolsel = "set +x\n"
170178
toolsel += "source fpga_version.sh\n"
171179
toolsel += "fpga_sim -d\n"
@@ -200,6 +208,7 @@ def commonPrekladHarpRun(COMPONENTS, ofm_path = pwd()) {
200208
stage("$name") {
201209
dir("$path") {
202210
def command = "harp multiver"
211+
sh "${print_info}"
203212
sh "${env_source}${toolsel}${command}"
204213
}
205214
}

0 commit comments

Comments
 (0)