Skip to content

Commit

Permalink
fix Github credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRivers committed Jul 5, 2018
1 parent aecf6ad commit ffb00c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
Expand Down Expand Up @@ -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'
}

Expand Down

0 comments on commit ffb00c3

Please sign in to comment.