File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ pipeline {
71
71
echo "Skipping, ${sha.path} already exists."
72
72
} else {
73
73
try {
74
- // Currently only opensearch build takes an additional test manifest parameter
74
+ // TEST_MANIFEST param isn't applicable for distribution-build-opensearch-dashboards job yet,
75
+ // so we don't pass it to that job to prevent confusion from Jenkins UI
75
76
if (TARGET_JOB_NAME == 'distribution-build-opensearch') {
76
77
build job: "${TARGET_JOB_NAME}", parameters: [
77
78
string(name: 'INPUT_MANIFEST', value: "${INPUT_MANIFEST}"),
@@ -81,6 +82,8 @@ pipeline {
81
82
build job: "${TARGET_JOB_NAME}", parameters: [
82
83
string(name: 'INPUT_MANIFEST', value: "${INPUT_MANIFEST}")
83
84
], wait: true
85
+ } else {
86
+ throw new Exception("Job ${TARGET_JOB_NAME} is not a valid option")
84
87
}
85
88
echo "Build succeeded, uploading build SHA for that job"
86
89
buildUploadManifestSHA(
@@ -89,6 +92,7 @@ pipeline {
89
92
)
90
93
} catch (err) {
91
94
echo "${TARGET_JOB_NAME} failed"
95
+ echo "Exception: ${err.getMessage()}"
92
96
}
93
97
}
94
98
}
You can’t perform that action at this time.
0 commit comments