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

main
onikolskyy 1 year ago
parent 3abb8949aa
commit 699083ec80

20
Jenkinsfile vendored

@ -11,14 +11,16 @@ pipeline {
stage("build image") { stage("build image") {
steps { steps {
script { script {
def image = "swr.eu-de.otc.t-systems.com/omnia-test/test-build:${env.BUILD_NUMBER}" container('jnlp') {
sh """ def image = "swr.eu-de.otc.t-systems.com/omnia-test/test-build:${env.BUILD_NUMBER}"
#sleep 2400 sh """
image="swr.eu-de.otc.t-systems.com/omnia-test/test-build:latest" #sleep 2400
docker login \$PASS swr.eu-de.otc.t-systems.com image="swr.eu-de.otc.t-systems.com/omnia-test/test-build:latest"
docker build -t ${image} . docker login \$PASS swr.eu-de.otc.t-systems.com
docker push ${image} docker build -t ${image} .
""" docker push ${image}
"""
}
} }
milestone(1) milestone(1)
} }
@ -26,7 +28,7 @@ pipeline {
stage ("deploy") { stage ("deploy") {
steps { steps {
script { script {
container('kubectl') { container('kubeind') {
sh """ sh """
kubectl set image deployment/test-jenkins-deployment test-jenkins=swr.eu-de.otc.t-systems.com/omnia-test/test-build:${env.BUILD_NUMBER} kubectl set image deployment/test-jenkins-deployment test-jenkins=swr.eu-de.otc.t-systems.com/omnia-test/test-build:${env.BUILD_NUMBER}
""" """

Loading…
Cancel
Save