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