Skip to content

Commit ad88134

Browse files
committed
Updates
Signed-off-by: Phil Henderson <phillip.henderson@hpe.com>
1 parent 8fb7cc6 commit ad88134

2 files changed

Lines changed: 10 additions & 17 deletions

File tree

Jenkinsfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,9 @@ def scriptedBuildStage(Map kwargs = [:]) {
334334
if (buildRpms) {
335335
sh label: 'Install RPMs',
336336
script: "./ci/rpm/install_deps.sh ${rpmDistro} ${release} ${bullseye}"
337+
// Avoid interpolation of sensitive environment variables
337338
sh label: 'Build deps',
338-
script: "./ci/rpm/build_deps.sh ${bullseye} ${env.BULLSEYE_KEY}"
339+
script: './ci/rpm/build_deps.sh ${bullseye} ${env.BULLSEYE_KEY}'
339340
}
340341
job_step_update(sconsBuild(sconsBuildArgs))
341342
if (buildRpms) {
@@ -988,10 +989,11 @@ pipeline {
988989
' --dfuse-dir /localhome/jenkins/' +
989990
' --log-usage-save nltir.xml' +
990991
' --log-usage-export nltr.json' +
992+
' --log-base-dir nlt_logs' +
991993
' --class-name nlt all',
992994
with_valgrind: 'memcheck',
993995
valgrind_pattern: '*memcheck.xml',
994-
always_script: 'ci/unit/test_nlt_post.sh',
996+
always_script: 'ci/unit/test_nlt_post.sh nlt_logs',
995997
testResults: 'nlt-junit.xml',
996998
unstash_opt: true,
997999
unstash_tests: false,
@@ -1049,10 +1051,10 @@ pipeline {
10491051
' --dfuse-dir /localhome/jenkins/' +
10501052
' --log-usage-save nltir-bullseye.xml' +
10511053
' --log-usage-export nltr-bullseye.json' +
1052-
' --memcheck no' +
10531054
' --log-base-dir nlt_bullseye_logs' +
1055+
' --memcheck no' +
10541056
' --class-name nlt all',
1055-
always_script: 'ci/unit/test_nlt_post.sh',
1057+
always_script: 'ci/unit/test_nlt_post.sh nlt_bullseye_logs',
10561058
testResults: 'nlt-junit.xml',
10571059
unstash_opt: true,
10581060
unstash_tests: false,
@@ -1303,9 +1305,10 @@ pipeline {
13031305
' --system-ram-reserved 4 --server-debug WARN' +
13041306
' --log-usage-import nltr.json' +
13051307
' --log-usage-save nltr.xml' +
1308+
' --log-base-dir nlt_logs' +
13061309
' --class-name fault-injection fi',
13071310
with_valgrind: '',
1308-
always_script: 'ci/unit/test_nlt_post.sh',
1311+
always_script: 'ci/unit/test_nlt_post.sh nlt_logs',
13091312
testResults: 'nlt-junit.xml',
13101313
unstash_opt: true,
13111314
unstash_tests: false,

ci/unit/test_nlt_post.sh

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,8 @@ NODE="${NODELIST%%,*}"
99

1010
test_log_dir="${1:-}"
1111
if [ -z "$test_log_dir" ]; then
12-
case $STAGE_NAME in
13-
"NLT")
14-
test_log_dir="nlt_logs"
15-
;;
16-
"NLT with Bullseye")
17-
test_log_dir="nlt_bullseye_logs"
18-
;;
19-
*)
20-
echo "test_nlt_post: The test log directory argument is missing!"
21-
exit 1
22-
;;
23-
esac
12+
echo "test_nlt_post: The test log directory argument is missing!"
13+
exit 1
2414
fi
2515

2616
rm -rf "$test_log_dir"

0 commit comments

Comments
 (0)