Jenkins Multi-Branch build

This commit is contained in:
Dominik Chilla 2019-06-14 18:38:33 +02:00
parent 0751c7ba4c
commit 0afc8aa7e7

View File

@ -1,11 +1,7 @@
pipeline { pipeline {
environment { environment {
dockerImage = '' dockerImage = ''
} imageName = 'sos-milter'
parameters {
string name: 'imageName', trim: false
string name: 'dockerRegistry', trim: false
} }
agent any agent any
@ -35,12 +31,10 @@ pipeline {
stage('Push image') { stage('Push image') {
steps { steps {
script { script {
docker.withRegistry(env.dockerRegistry) {
dockerImage.push() dockerImage.push()
} }
} }
} }
}
stage('Cleanup') { stage('Cleanup') {
steps { steps {