Skip to content
Snippets Groups Projects
Commit 0932f998 authored by Felix Reichenbach's avatar Felix Reichenbach
Browse files

OZG-7906 change aggregation-manager name

parent 82c84082
No related branches found
No related tags found
1 merge request!15Ozg 7906 aggregation manager server
...@@ -151,7 +151,7 @@ pipeline { ...@@ -151,7 +151,7 @@ pipeline {
dir('aggregation-manager-job/src/main/helm') { dir('aggregation-manager-job/src/main/helm') {
sh "helm package --version=${HELM_CHART_VERSION} ." sh "helm package --version=${HELM_CHART_VERSION} ."
deployHelmChart(HELM_CHART_VERSION) deployHelmChart('aggregation-manager-job', HELM_CHART_VERSION)
} }
} }
} }
...@@ -282,13 +282,13 @@ String getElementAccessToken() { ...@@ -282,13 +282,13 @@ String getElementAccessToken() {
} }
} }
Void deployHelmChart(String helmChartVersion) { Void deployHelmChart(String helmChartName, String helmChartVersion) {
withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]){ withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]){
if (env.BRANCH_NAME == 'release') { if (env.BRANCH_NAME == 'release') {
result = sh script: '''curl -u $USERNAME:$PASSWORD https://nexus.ozg-sh.de/service/rest/v1/components?repository=ozg-base-apps -F file=@aggregation-manager-'''+helmChartVersion+'''.tgz''', returnStdout: true result = sh script: '''curl -u $USERNAME:$PASSWORD https://nexus.ozg-sh.de/service/rest/v1/components?repository=ozg-base-apps -F file=@-'''+helmChartName+'''-'''+helmChartVersion+'''.tgz''', returnStdout: true
} }
else { else {
result = sh script: '''curl -u $USERNAME:$PASSWORD https://nexus.ozg-sh.de/service/rest/v1/components?repository=ozg-base-apps-snapshot -F file=@aggregation-manager-'''+helmChartVersion+'''.tgz''', returnStdout: true result = sh script: '''curl -u $USERNAME:$PASSWORD https://nexus.ozg-sh.de/service/rest/v1/components?repository=ozg-base-apps-snapshot -F file=@'''+helmChartName+'''-'''+helmChartVersion+'''.tgz''', returnStdout: true
} }
if (result != '') { if (result != '') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment