mirror of
https://github.com/chillout2k/sos-milter.git
synced 2025-12-12 18:10:18 +00:00
Jenkins parameterized
This commit is contained in:
parent
1f9cce63ca
commit
0fb8d45838
@ -1,8 +1,6 @@
|
||||
pipeline {
|
||||
environment {
|
||||
imageObject = ''
|
||||
imageName = 'jenkins/sos-milter'
|
||||
dockerRegistry = 'https://dockreg-fra.zwackl.de'
|
||||
}
|
||||
|
||||
agent any
|
||||
@ -14,7 +12,7 @@ pipeline {
|
||||
/* This builds the actual image; synonymous to
|
||||
* docker build on the command line */
|
||||
script {
|
||||
imageObject = docker.build(imageName)
|
||||
imageObject = docker.build(${env.imageName})
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -34,9 +32,9 @@ pipeline {
|
||||
stage('Push image') {
|
||||
steps {
|
||||
script {
|
||||
/* docker.withRegistry(dockerRegistry) {*/
|
||||
docker.withRegistry(${env.dockerRegistry}) {
|
||||
imageObject.push()
|
||||
/* }*/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user