Thienvv - test
This commit is contained in:
@@ -130,14 +130,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
script {
|
script {
|
||||||
try {
|
try {
|
||||||
def buildResult = build job: "${TRIGGER_JOB_NAME}", parameters:[
|
build job: "${TRIGGER_JOB_NAME}", parameters:[
|
||||||
string(name: 'ENV', value: 'uat'),
|
string(name: 'ENV', value: 'uat'),
|
||||||
string(name: 'CI_JOB_BUILD_NUMBER', value: env.BUILD_NUMBER)
|
string(name: 'CI_JOB_BUILD_NUMBER', value: env.BUILD_NUMBER)
|
||||||
],
|
], propagate: false
|
||||||
propagate: false
|
|
||||||
if (buildResult.result != 'SUCCESS') {
|
|
||||||
echo "[WARNING] Job 2 failed with result: ${buildResult.result}"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
echo "[ERROR] Failed to trigger job: ${TRIGGER_JOB_NAME}. Error: ${e.message}"
|
echo "[ERROR] Failed to trigger job: ${TRIGGER_JOB_NAME}. Error: ${e.message}"
|
||||||
|
|||||||
Reference in New Issue
Block a user