From 5ad8047ce48af77a09b958db1ad06768368a739b Mon Sep 17 00:00:00 2001 From: thienqb123456 Date: Wed, 5 Mar 2025 18:39:50 +0700 Subject: [PATCH] Thienvv - sua cd backend2 --- be/be-acp/cd-acp-backend.Jenkinsfile | 12 ++++++------ be/be-portal/cd-portal-backend.Jenkinsfile | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/be/be-acp/cd-acp-backend.Jenkinsfile b/be/be-acp/cd-acp-backend.Jenkinsfile index f706290..e6d0ac9 100644 --- a/be/be-acp/cd-acp-backend.Jenkinsfile +++ b/be/be-acp/cd-acp-backend.Jenkinsfile @@ -1,7 +1,7 @@ pipeline { agent any parameters { - choice(name: 'ENV', choices: ['uat', 'beta'], description: 'Choose Environment') + choice(name: 'ENV', choices: ['uat', 'production'], description: 'Choose Environment') string(name: 'CI_JOB_BUILD_NUMBER', defaultValue: '', description: 'Build number of CI Job') } environment { @@ -9,14 +9,14 @@ pipeline { CI_JOB_NAME = 'CI_BE_ACP' // tên của job build code CI_JOB_METADATA_FILENAME = "${PROJECT_NAME}_metadata.json" // tên file metadata đã được lưu từ ci job + NEXUS_CREDENTIALS = credentials('Nexus_credential') + + ANSIBLE_SSH_CONNECTION = 'root@103.166.183.172 -p 24700' GIT_PAT_CREDENTIALS_ID = 'd3de261f-8f1e-470b-b6d1-2fb4965e0129' // Id của Personal Access Token lưu trên jenkins GIT_ANSIBLE_URL = 'work.gct.com.vn/thienvv/nsg_ansible.git' - GIT_ANSIBLE_BRANCH = 'v2' + GIT_ANSIBLE_BRANCH = 'v3' - NEXUS_CREDENTIALS = credentials('Nexus_credential') - ANSIBLE_SSH_CONNECTION = 'root@103.166.183.172 -p 24700' - - ANSIBLE_FOLDER_PATH = '/srv/ansible_v2' + ANSIBLE_FOLDER_PATH = '/srv/ansible_v3' ANSIBLE_PLAYBOOK_PATH = 'playbooks/backend/deploy_acp_backend.yml' TELEGRAM_CHAT_ID = -4678013464 diff --git a/be/be-portal/cd-portal-backend.Jenkinsfile b/be/be-portal/cd-portal-backend.Jenkinsfile index 2a7aa08..41b1583 100644 --- a/be/be-portal/cd-portal-backend.Jenkinsfile +++ b/be/be-portal/cd-portal-backend.Jenkinsfile @@ -1,7 +1,7 @@ pipeline { agent any parameters { - choice(name: 'ENV', choices: ['uat', 'beta'], description: 'Choose Environment') + choice(name: 'ENV', choices: ['uat', 'production'], description: 'Choose Environment') choice(name: 'PORTAL_NAME', choices: ['ktdt', 'hnt'], description: 'Choose Portal') string(name: 'CI_JOB_BUILD_NUMBER', defaultValue: '', description: 'Build number of CI Job') }