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