diff --git a/Jenkinsfile b/Jenkinsfile index 619b617c..bcca9fdb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,7 @@ node ('Docker') { println 'Failed to find string "Dyalog MiServer 3.0 Sample Site" cleaning up.' sh "docker logs ${MiServer.id}" sh "git rev-parse --short HEAD > .git/commit-id" - withCredentials([usernamePassword(credentialsId: '7ac3a2c6-484c-4879-ac85-2b0db71a7e58', passwordVariable: 'GHTOKEN', usernameVariable: 'API')]) { + withCredentials([string(credentialsId: '7ac3a2c6-484c-4879-ac85-2b0db71a7e58', variable: 'GHTOKEN')]) { commit_id = readFile('.git/commit-id') sh "./githubComment.sh ${MiServer.id} ${commit_id}" } @@ -65,7 +65,7 @@ node ('Docker') { } stage ('Github Upload') { - withCredentials([usernamePassword(credentialsId: '7ac3a2c6-484c-4879-ac85-2b0db71a7e58', passwordVariable: 'GHTOKEN', usernameVariable: 'API')]) { + withCredentials([string(credentialsId: '7ac3a2c6-484c-4879-ac85-2b0db71a7e58', variable: 'GHTOKEN')]) { sh './GH-Release.sh' }