Skip to content
Snippets Groups Projects
Commit 41655fb6 authored by Martin's avatar Martin
Browse files

OZG-6932 adjust image tag for feature branches

parent b04847f9
Branches
Tags
No related merge requests found
...@@ -453,14 +453,6 @@ String getHelmRepoUrl() { ...@@ -453,14 +453,6 @@ String getHelmRepoUrl() {
return "https://nexus.ozg-sh.de/repository/ozg-base-apps-snapshot" return "https://nexus.ozg-sh.de/repository/ozg-base-apps-snapshot"
} }
String getFeatureBranchImageTag() {
return "${env.BRANCH_NAME}-${getRootPomVersion()}"
}
String getFeatureBranchHelmChartVersion() {
return "${getRootPomVersion()}-${env.BRANCH_NAME}".replaceAll("_", "-")
}
String getRootPomVersion() { String getRootPomVersion() {
def rootPom = readMavenPom file: 'pom.xml' def rootPom = readMavenPom file: 'pom.xml'
...@@ -480,17 +472,10 @@ Void initEnvAdminDefaultVersions() { ...@@ -480,17 +472,10 @@ Void initEnvAdminDefaultVersions() {
} }
Void initEnvAlfaDefaultVersions() { Void initEnvAlfaDefaultVersions() {
if (isMasterBranch() || isReleaseBranch()) { def values = getApplicationValues('alfa')
values = getApplicationValues('alfa')
env.ALFA_IMAGE_TAG = getImageTag(values) env.ALFA_IMAGE_TAG = getImageTag(values)
env.ALFA_HELM_CHART_VERSION = getHelmChartVersion(values) env.ALFA_HELM_CHART_VERSION = getHelmChartVersion(values)
}
else {
env.ALFA_IMAGE_TAG = getFeatureBranchImageTag()
env.ALFA_HELM_CHART_VERSION = getFeatureBranchHelmChartVersion()
}
env.ALFA_HELM_REPO_URL = getHelmRepoUrl() env.ALFA_HELM_REPO_URL = getHelmRepoUrl()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment