pipeline { agent { label 'dind-agent' kubernetes { cloud 'k8s-config' } } stages { stage("build image") { steps { script { def image = "swr.eu-de.otc.t-systems.com/omnia-test/test-build:${env.BUILD_NUMBER}" echo "FOO is ${env.BUILD_NUMBER}" sh """ sleep 1200 image="swr.eu-de.otc.t-systems.com/omnia-test/test-build:latest" docker login \$PASS swr.eu-de.otc.t-systems.com docker build -t ${image} . docker push ${image} """ } milestone(1) } } } }