commit
ad5dc72f76
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@ -32,16 +32,19 @@ node {
|
|||||||
* First, the incremental build number from Jenkins
|
* First, the incremental build number from Jenkins
|
||||||
* Second, the 'latest' tag.
|
* Second, the 'latest' tag.
|
||||||
* Pushing multiple tags is cheap, as all the layers are reused. */
|
* 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']]) {
|
||||||
script {
|
sh 'docker login -u $USERNAME -p $PASSWORD'
|
||||||
if (env.BRANCH_NAME == 'master') {
|
script {
|
||||||
app.push()
|
if (env.BRANCH_NAME == 'master') {
|
||||||
} else {
|
app.push()
|
||||||
app.push("devel")
|
} else {
|
||||||
}
|
app.push("devel")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
stage('Cleaning'){
|
stage('Cleaning'){
|
||||||
sh "docker image prune -f"
|
sh "docker image prune -f"
|
||||||
|
Loading…
Reference in New Issue
Block a user