test
This commit is contained in:
parent
9f3b5cc67b
commit
f400932f40
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@ -32,16 +32,18 @@ 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
|
docker.withRegistry('https://docker.io', 'docker-hub-credentials') {
|
||||||
script {
|
script {
|
||||||
if (env.BRANCH_NAME == 'master') {
|
if (env.BRANCH_NAME == 'master') {
|
||||||
app.push()
|
app.push()
|
||||||
} else {
|
} else {
|
||||||
app.push("devel")
|
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