This commit is contained in:
Sébastien Clément 2018-03-01 19:53:51 +01:00 committed by GitHub
parent 9f3b5cc67b
commit f400932f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
Jenkinsfile vendored
View File

@ -32,16 +32,18 @@ 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
script {
if (env.BRANCH_NAME == 'master') {
app.push()
} else {
app.push("devel")
}
docker.withRegistry('https://docker.io', 'docker-hub-credentials') {
script {
if (env.BRANCH_NAME == 'master') {
app.push()
} else {
app.push("devel")
}
}
}
}
stage('Cleaning'){
sh "docker image prune -f"