|
|
@ -3,7 +3,7 @@ repository="swr.eu-de.otc.t-systems.com"
|
|
|
|
tag="latest"
|
|
|
|
tag="latest"
|
|
|
|
image="swr.eu-de.otc.t-systems.com/omnia-test/${repository}:${version}.${env.BUILD_NUMBER}"
|
|
|
|
image="swr.eu-de.otc.t-systems.com/omnia-test/${repository}:${version}.${env.BUILD_NUMBER}"
|
|
|
|
namespace="demo"
|
|
|
|
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',
|
|
|
|
podTemplate(label: 'pod', cloud: 'k8s-config', serviceAccount: 'jenkins-admin',
|
|
|
|
imagePullSecrets: [
|
|
|
|
imagePullSecrets: [
|
|
|
|
'default-secret'
|
|
|
|
'default-secret'
|
|
|
@ -21,7 +21,7 @@ podTemplate(label: 'pod', cloud: 'k8s-config', serviceAccount: 'jenkins-admin',
|
|
|
|
stage('Build Docker Image') {
|
|
|
|
stage('Build Docker Image') {
|
|
|
|
container('docker') {
|
|
|
|
container('docker') {
|
|
|
|
script {
|
|
|
|
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 login $PASS swr.eu-de.otc.t-systems.com'
|
|
|
|
sh 'docker build -t ${imageName} .'
|
|
|
|
sh 'docker build -t ${imageName} .'
|
|
|
|
sh 'docker push ${image}'
|
|
|
|
sh 'docker push ${image}'
|
|
|
|