a
test/pipeline/head There was a failure building this commit Details

main
onikolskyy 1 year ago
parent 7a34a969b6
commit 359dcf1623

7
Jenkinsfile vendored

@ -4,6 +4,7 @@ tag="latest"
image="swr.eu-de.otc.t-systems.com/omnia-test/${repository}:${version}.${env.BUILD_NUMBER}"
namespace="demo"
def imageName = "swr.eu-de.otc.t-systems.com/omnia-test/test-ci:1.0.0.${env.BUILD_NUMBER}"
podTemplate(label: 'pod', cloud: 'k8s-config', serviceAccount: 'jenkins-admin',
imagePullSecrets: [
'default-secret'
@ -18,10 +19,14 @@ podTemplate(label: 'pod', cloud: 'k8s-config', serviceAccount: 'jenkins-admin',
],
) {
node('pod') {
environment {
FOO = "swr.eu-de.otc.t-systems.com/omnia-test/test-ci:1.0.0.${env.BUILD_NUMBER}"
}
stage('Build Docker Image') {
container('docker') {
script {
sh 'echo "FOO is $FOO"'
sh 'docker login $PASS swr.eu-de.otc.t-systems.com'
sh 'docker build -t ${imageName} .'
sh 'docker push ${image}'

Loading…
Cancel
Save