Grab all the right credentials for logging in via docker

This commit is contained in:
R. Tyler Croy 2016-08-03 14:48:58 -07:00
parent df0de7843f
commit d4f1d9a517
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -15,9 +15,9 @@ node('docker') {
withCredentials([[$class: 'UsernamePasswordMultiBinding',
credentialsId: 'dockerhub',
passwordVariable: 'DOCKERHUB_TOKEN',
usernameVariable: 'DOCKERHUB_EMAIL']]) {
usernameVariable: 'DOCKERHUB_USERNAME']]) {
/* Our variables be exposed in the environment and we must log in before trying to publish to Dockerhub */
sh 'docker login --username rtyler --password ${DOCKERHUB_TOKEN}'
sh 'docker login --username=${DOCKERHUB_USERNAME} --email=tyler@monkeypox.org --password=${DOCKERHUB_TOKEN}'
sh './push-rubies.sh'
}
}