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") {
steps {
script {
def image = "swr.eu-de.otc.t-systems.com/omnia-test/test-build:${env.BUILD_NUMBER}"
sh """
#sleep 2400
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}
"""
container('jnlp') {
def image = "swr.eu-de.otc.t-systems.com/omnia-test/test-build:${env.BUILD_NUMBER}"
sh """
#sleep 2400
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)
}
@ -26,7 +28,7 @@ pipeline {
stage ("deploy") {
steps {
script {
container('kubectl') {
container('kubeind') {
sh """
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