commit
ad5dc72f76
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -32,7 +32,8 @@ node {
|
||||
* First, the incremental build number from Jenkins
|
||||
* Second, the 'latest' tag.
|
||||
* Pushing multiple tags is cheap, as all the layers are reused. */
|
||||
def docker_tag
|
||||
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'docker-hub-credentials', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
|
||||
sh 'docker login -u $USERNAME -p $PASSWORD'
|
||||
script {
|
||||
if (env.BRANCH_NAME == 'master') {
|
||||
app.push()
|
||||
@ -40,6 +41,8 @@ node {
|
||||
app.push("devel")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user