Skip to content

Commit 6f8d786

Browse files
committed
script updated
1 parent 4d8ca77 commit 6f8d786

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.citd/Jenkinsfilek8s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ pipeline {
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" , if target branch is "test_deploy" selects "mchpTestArea"
19-
GITHUB_URL = ("${env.BRANCH_NAME" == "master") ? GITHUB_PRODUCTION_DEPLOY_URL : ("${env.BRANCH_NAME" == "test_deploy") ? GITHUB_TEST_DEPLY_URL : null
19+
GITHUB_URL = ("${env.BRANCH_NAME}" == "master") ? GITHUB_PRODUCTION_DEPLOY_URL : ("${env.BRANCH_NAME}" == "test_deploy") ? GITHUB_TEST_DEPLY_URL : null
2020
GITHUB_PRODUCTION_DEPLOY_CREDENTIAL_ID='GITHUB_MICROCHIP_PIC_AVR_EXAMPLES_TOKEN'
2121
GITHUB_TEST_DEPLOY_CREDENTIAL_ID='GITHUB_PIC_AVR_TEST_TOKEN'
22-
GITHUB_CREDENTIAL_ID = ("${env.BRANCH_NAME" == "master") ? GITHUB_PRODUCTION_DEPLOY_CREDENTIAL_ID : ("${env.BRANCH_NAME" == "test_deploy") ? GITHUB_TEST_DEPLOY_CREDENTIAL_ID : null
22+
GITHUB_CREDENTIAL_ID = ("${env.BRANCH_NAME}" == "master") ? GITHUB_PRODUCTION_DEPLOY_CREDENTIAL_ID : ("${env.BRANCH_NAME}" == "test_deploy") ? GITHUB_TEST_DEPLOY_CREDENTIAL_ID : null
2323
//Files or folders to be excluded from deployment, if multiple files or folders use comma separator
2424
DEPLOY_EXCLUDE_FOLDER_FILE_LIST = 'mchp_private'
2525
//Branch(s) to be deployed, if multiple branches use comma separator. ${env.BRANCH_NAME} is the target branch of the PR.

0 commit comments

Comments
 (0)