Skip to content

Commit

Permalink
add use of withCredential so we can access status-im-auto token
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubgs committed Nov 2, 2018
1 parent bd4cebf commit fbd3f89
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion _assets/ci/Jenkinsfile-manual
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,19 @@ node('linux') {
script: "git describe --exact-match --tag 2>/dev/null || git describe --always",
returnStdout: true
).trim()
sh "env GITHUB_TOKEN=${env.GIT_PASS} make deploy release_tag=${version} release_branch=${gitBranch} release_directory=\"build/bin/*\""
withCredentials([[
$class: 'UsernamePasswordMultiBinding',
credentialsId: 'status-im-auto',
usernameVariable: 'GITHUB_USER',
passwordVariable: 'GITHUB_TOKEN'
]]) {
sh """
make deploy \
release_tag=${version} \
release_branch=${gitBranch} \
release_directory='build/bin/*'
"""
}
}
}
}

0 comments on commit fbd3f89

Please sign in to comment.