diff --git a/Jenkinsfile b/Jenkinsfile index 4ef3b2a..18e32f8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,11 +20,12 @@ podTemplate(label: 'pod', cloud: 'k8s-config', serviceAccount: 'jenkins-admin', node('pod') { stage('Build Docker Image') { container('docker') { - def imageName = "swr.eu-de.otc.t-systems.com/omnia-test/test-ci:1.0.0.${env.BUILD_NUMBER}" - sh 'docker login $PASS swr.eu-de.otc.t-systems.com' - sh 'docker build -t ${imageName} .' - sh 'docker push ${image}' - + script { + def imageName = "swr.eu-de.otc.t-systems.com/omnia-test/test-ci:1.0.0.${env.BUILD_NUMBER}" + sh 'docker login $PASS swr.eu-de.otc.t-systems.com' + sh 'docker build -t ${imageName} .' + sh 'docker push ${image}' + } milestone(1) } }