Jenkins test stage with inside

This commit is contained in:
Dominik Chilla 2019-06-14 19:40:51 +02:00
parent 05d6fe7670
commit 07378f9094

View File

@ -1,10 +1,12 @@
pipeline { pipeline {
agent any agent any
environment { environment {
CI = 'true'
dockerImage = '' dockerImage = ''
imageName = 'sos-milter' imageName = 'sos-milter'
} }
stages { stages {
stage('Build image') { stage('Build image') {
steps { steps {
@ -28,7 +30,9 @@ pipeline {
stage('Push image') { stage('Push image') {
steps { steps {
script { script {
dockerImage.push() docker.withRegistry('https://dockreg-fra.zwackl.de') {
dockerImage.push()
}
} }
} }
} }