@@ -11,13 +11,15 @@ pipeline {
1111 environment {
1212 NOTIFICATION_EMAIL = '
[email protected] '
1313 //This is the BitBucket source repo URL to be deployed
14- BITBUCKET_URL = 'https://bitbucket.microchip.com/scm/mcu16ce/pic24f-hello-world-uart.git'
15- BITBUCKET_CREDENTIAL_ID = 'BITBUCKET_MCU16CE_TOKEN '
14+ BITBUCKET_SOURCE_URL = 'https://bitbucket.microchip.com/scm/mcu16ce/pic24f-hello-world-uart.git'
15+ BITBUCKET_CREDENTIAL_ID = 'BITBUCKET_INTERNAL_TOKEN '
1616 GITHUB_PRODUCTION_DEPLOY_URL ='https://github.com/microchip-pic-avr-examples'
1717 GITHUB_TEST_DEPLOY_URL ='https://github.com/mchpTestArea'
1818 //Selects the deployment URL(production or test) based on the merge target branch, selects "microchip-pic-avr-examples" if target branch is "master" else selects "mchpTestArea"
1919 GITHUB_URL = "${env.BRANCH_NAME == 'master' ? env.GITHUB_PRODUCTION_DEPLOY_URL : env.GITHUB_TEST_DEPLOY_URL}"
2020 GITHUB_CREDENTIAL_ID = 'GITHUB_PIC_AVR_TEST_TOKEN'
21+ GITHUB_PRODUCTION_DEPLOY_CREDENTIAL_ID=''
22+ GITHUB_TEST_DEPLOY_CREDENTIAL_ID=''
2123 //Files or folders to be excluded from deployment, if multiple files or folders use comma separator
2224 DEPLOY_EXCLUDE_FOLDER_FILE_LIST = 'mchp_private'
2325 //Branch(s) to be deployed, if multiple branches use comma separator. ${env.BRANCH_NAME} is the target branch of the PR.
@@ -135,7 +137,7 @@ pipeline {
135137 gitHubUrl = gitHubUrl.replace(" ", "").replace("\n", "")
136138
137139 withCredentials([usernamePassword(credentialsId: "${env.GITHUB_CREDENTIAL_ID}", passwordVariable: 'PASS', usernameVariable: 'USER_NAME')]) {
138- execute("python tool-github-deploy/tool-github-deploy/tool-github-deploy.py -deploy=true -gpat=$PASS -dgid=$USER_NAME -dburl=${env.BITBUCKET_URL } -dgurl=${gitHubUrl} -dbranch=${env.DEPLOY_BRANCH_LIST} -def=${env.DEPLOY_EXCLUDE_FOLDER_FILE_LIST}")
140+ execute("python tool-github-deploy/tool-github-deploy/tool-github-deploy.py -deploy=true -gpat=$PASS -dgid=$USER_NAME -dburl=${env.BITBUCKET_SOURCE_URL } -dgurl=${gitHubUrl} -dbranch=${env.DEPLOY_BRANCH_LIST} -def=${env.DEPLOY_EXCLUDE_FOLDER_FILE_LIST}")
139141 }
140142 }
141143 }
0 commit comments