Thienvv - test

This commit is contained in:
thienqb123456
2024-12-31 19:14:17 +07:00
parent 1ed1243ccd
commit 3b528082fe
+2 -6
View File
@@ -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}"