Thienvv -

This commit is contained in:
thienqb123456
2024-12-24 18:00:31 +07:00
parent 4a3693ee10
commit b807e0e0b2
2 changed files with 12 additions and 10 deletions
+2 -2
View File
@@ -122,10 +122,10 @@ pipeline {
}
success {
echo "Job '${env.JOB_NAME}' completed successfully. Attempting to trigger Job '${TRIGGER_JOB_NAME}'..."
script {
def message = "Build thành công : API - Môi trường ${params.ENV} - Dự án ${env.PROJECT_NAME} ${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:[
@@ -124,8 +124,10 @@ pipeline {
}
success {
echo "Job '${env.JOB_NAME}' completed successfully. Attempting to trigger Job '${TRIGGER_JOB_NAME}'..."
script {
def message = "Build thành công : API - Môi trường ${params.ENV} - Dự án ${env.PROJECT_NAME} ${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:[