mirror of
https://github.com/chillout2k/sos-milter.git
synced 2025-12-12 18:10:18 +00:00
Jenkins Multi-Branch build
This commit is contained in:
parent
0751c7ba4c
commit
0afc8aa7e7
@ -1,11 +1,7 @@
|
||||
pipeline {
|
||||
environment {
|
||||
dockerImage = ''
|
||||
}
|
||||
|
||||
parameters {
|
||||
string name: 'imageName', trim: false
|
||||
string name: 'dockerRegistry', trim: false
|
||||
imageName = 'sos-milter'
|
||||
}
|
||||
|
||||
agent any
|
||||
@ -35,9 +31,7 @@ pipeline {
|
||||
stage('Push image') {
|
||||
steps {
|
||||
script {
|
||||
docker.withRegistry(env.dockerRegistry) {
|
||||
dockerImage.push()
|
||||
}
|
||||
dockerImage.push()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user