From 70b759026942f106a4be664855351518b32235d6 Mon Sep 17 00:00:00 2001 From: thienqb123456 Date: Tue, 14 Jan 2025 14:59:04 +0700 Subject: [PATCH] thienvv- --- fe/fe-acp/ci-beta-acp-frontend.Jenkinsfile | 32 +++++++++---------- .../ci-beta-portal-frontend.Jenkinsfile | 32 +++++++++---------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/fe/fe-acp/ci-beta-acp-frontend.Jenkinsfile b/fe/fe-acp/ci-beta-acp-frontend.Jenkinsfile index d77a357..eb988cb 100644 --- a/fe/fe-acp/ci-beta-acp-frontend.Jenkinsfile +++ b/fe/fe-acp/ci-beta-acp-frontend.Jenkinsfile @@ -106,22 +106,22 @@ pipeline { def message = "Build thành công : FRONTEND - Môi trường ${env.ENV} - Dự án ${env.PROJECT_NAME} \n ${currentBuild.fullDisplayName}\n${env.BUILD_URL} \n Đang tiến hành Deploy...!" sh "curl -s -X POST https://api.telegram.org/bot${env.TELEGRAM_BOT_TOKEN}/sendMessage -d chat_id=${env.TELEGRAM_CHAT_ID} -d text=\"${message}\"" } - script { - try { - def buildResult = build job: "${TRIGGER_JOB_NAME}", parameters:[ - string(name: 'ENV', value: env.ENV), - 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}" - } - } - catch (Exception e) { - echo "[ERROR] Failed to trigger job: ${TRIGGER_JOB_NAME}. Error: ${e.message}" - throw e - } - } + // script { + // try { + // def buildResult = build job: "${TRIGGER_JOB_NAME}", parameters:[ + // string(name: 'ENV', value: env.ENV), + // 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}" + // } + // } + // catch (Exception e) { + // echo "[ERROR] Failed to trigger job: ${TRIGGER_JOB_NAME}. Error: ${e.message}" + // throw e + // } + // } } failure { script { diff --git a/fe/fe-portal/ci-beta-portal-frontend.Jenkinsfile b/fe/fe-portal/ci-beta-portal-frontend.Jenkinsfile index f0d6eb9..57d272b 100644 --- a/fe/fe-portal/ci-beta-portal-frontend.Jenkinsfile +++ b/fe/fe-portal/ci-beta-portal-frontend.Jenkinsfile @@ -109,22 +109,22 @@ pipeline { def message = "Build thành công : FRONTEND - Môi trường ${env.ENV} - Dự án ${env.PROJECT_NAME} \n ${currentBuild.fullDisplayName}\n${env.BUILD_URL} \n Đang tiến hành Deploy...!" sh "curl -s -X POST https://api.telegram.org/bot${env.TELEGRAM_BOT_TOKEN}/sendMessage -d chat_id=${env.TELEGRAM_CHAT_ID} -d text=\"${message}\"" } - script { - try { - def buildResult = build job: "${TRIGGER_JOB_NAME}", parameters:[ - string(name: 'ENV', value: env.ENV), - 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}" - } - } - catch (Exception e) { - echo "[ERROR] Failed to trigger job: ${TRIGGER_JOB_NAME}. Error: ${e.message}" - throw e - } - } + // script { + // try { + // def buildResult = build job: "${TRIGGER_JOB_NAME}", parameters:[ + // string(name: 'ENV', value: env.ENV), + // 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}" + // } + // } + // catch (Exception e) { + // echo "[ERROR] Failed to trigger job: ${TRIGGER_JOB_NAME}. Error: ${e.message}" + // throw e + // } + // } } failure { script {