Skip to content

Commit ffb00c3

Browse files
committed
fix Github credentials
1 parent aecf6ad commit ffb00c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ node ('Docker') {
2222
println 'Failed to find string "Dyalog MiServer 3.0 Sample Site" cleaning up.'
2323
sh "docker logs ${MiServer.id}"
2424
sh "git rev-parse --short HEAD > .git/commit-id"
25-
withCredentials([usernamePassword(credentialsId: '7ac3a2c6-484c-4879-ac85-2b0db71a7e58', passwordVariable: 'GHTOKEN', usernameVariable: 'API')]) {
25+
withCredentials([string(credentialsId: '7ac3a2c6-484c-4879-ac85-2b0db71a7e58', variable: 'GHTOKEN')]) {
2626
commit_id = readFile('.git/commit-id')
2727
sh "./githubComment.sh ${MiServer.id} ${commit_id}"
2828
}
@@ -65,7 +65,7 @@ node ('Docker') {
6565
}
6666

6767
stage ('Github Upload') {
68-
withCredentials([usernamePassword(credentialsId: '7ac3a2c6-484c-4879-ac85-2b0db71a7e58', passwordVariable: 'GHTOKEN', usernameVariable: 'API')]) {
68+
withCredentials([string(credentialsId: '7ac3a2c6-484c-4879-ac85-2b0db71a7e58', variable: 'GHTOKEN')]) {
6969
sh './GH-Release.sh'
7070
}
7171

0 commit comments

Comments
 (0)