mirror of
https://github.com/chillout2k/sos-milter.git
synced 2025-12-15 19:29:45 +00:00
Jenkins Multi-Branch build
This commit is contained in:
parent
0751c7ba4c
commit
0afc8aa7e7
@ -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,9 +31,7 @@ pipeline {
|
|||||||
stage('Push image') {
|
stage('Push image') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
docker.withRegistry(env.dockerRegistry) {
|
dockerImage.push()
|
||||||
dockerImage.push()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user