From 4d9ac77362b9f76c11b18e8ceef004bc06529568 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Tue, 12 Jan 2021 09:55:54 +0100 Subject: [PATCH] jenkinspipeline angepasst --- Jenkinsfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 625d971c92..5b563b117c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -81,9 +81,16 @@ pipeline { openshift.tag("goofy-builder:latest", "goofy-builder:${env.BRANCH_NAME}-${version}") + if (env.BRANCH_NAME == 'release') { + openshift.tag("goofy-builder:${env.BRANCH_NAME}-${version}", "goofy-builder:latest") + } + if (env.BRANCH_NAME == 'master') { def dc = openshift.selector('dc', 'goofy-e2e') + + openshift.tag("goofy-builder:${env.BRANCH_NAME}-${version}", "goofy-builder:snapshot-latest") openshift.tag("goofy-builder:latest", "goofy-builder:e2e-latest") + dc.rollout().status() } } @@ -139,6 +146,14 @@ pipeline { openshift.withCluster() { openshift.withProject() { openshift.tag("goofy-builder:${env.BRANCH_NAME}-${version}", "sh-kiel-dev/goofy:${env.BRANCH_NAME}-${version}") + + if (env.BRANCH_NAME == 'master') { + openshift.tag("goofy-builder:snapshot-latest", "sh-kiel-dev/goofy:snapshot-latest") + } + + if (env.BRANCH_NAME == 'release') { + openshift.tag("goofy-builder:latest", "sh-kiel-dev/goofy:latest") + } } if (env.BRANCH_NAME == 'master') { openshift.withProject('sh-kiel-dev') { -- GitLab