pipeline { agent { kubernetes { inheritFrom 'dind-agentt' cloud 'kubernetes' } } stages { stage("build image") { steps { script { def image = "swr.eu-de.otc.t-systems.com/omnia-test/test-build:${env.BUILD_NUMBER}" sh """ 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) } } } }