Update Jenkinsfile

This commit is contained in:
Sébastien Clément 2018-03-01 20:00:44 +01:00 committed by GitHub
parent 15975d8582
commit c2494dbad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
Jenkinsfile vendored
View File

@ -33,7 +33,7 @@ node {
* Second, the 'latest' tag.
* Pushing multiple tags is cheap, as all the layers are reused. */
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'docker-hub-credentials', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
sh 'docker login -u $USERNAME -p $PASSWORD
sh 'docker login -u $USERNAME -p $PASSWORD'
script {
if (env.BRANCH_NAME == 'master') {
app.push()