Skip to content
Snippets Groups Projects
Commit 6540d4df authored by OZGCloud's avatar OZGCloud
Browse files

ozg-2387 use latest helm chart in release e2e tests

parent 0ee1ff5e
No related branches found
No related tags found
No related merge requests found
...@@ -139,6 +139,7 @@ pipeline { ...@@ -139,6 +139,7 @@ pipeline {
withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) { withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) {
sh 'helm repo add ozg-base-apps-snapshot https://nexus.ozg-sh.de/repository/ozg-base-apps-snapshot --username ${USER} --password ${PASSWORD}' sh 'helm repo add ozg-base-apps-snapshot https://nexus.ozg-sh.de/repository/ozg-base-apps-snapshot --username ${USER} --password ${PASSWORD}'
sh 'helm repo add ozg-base-apps https://nexus.ozg-sh.de/repository/ozg-base-apps --username ${USER} --password ${PASSWORD}'
} }
sh 'helm version' sh 'helm version'
...@@ -341,8 +342,13 @@ Void checkIfNamespaceExists(String namespace) { ...@@ -341,8 +342,13 @@ Void checkIfNamespaceExists(String namespace) {
Void startPluto(String namespace, String values, String bezeichner) { Void startPluto(String namespace, String values, String bezeichner) {
container("k8s") { container("k8s") {
dir('goofy-client/apps/goofy-e2e/deployment-values/pluto') { dir('goofy-client/apps/goofy-e2e/deployment-values/pluto') {
if(env.BRANCH_NAME == 'release') {
sh "helm upgrade --install --create-namespace pluto ozg-base-apps/pluto -f ${values} --set kop.bezeichner=${bezeichner} --namespace ${namespace} --wait --wait-for-jobs"
}
else {
sh "helm upgrade --install --create-namespace pluto ozg-base-apps-snapshot/pluto -f ${values} --set kop.bezeichner=${bezeichner} --namespace ${namespace} --version ${getLatestChartVersion('pluto').trim()} --wait --wait-for-jobs" sh "helm upgrade --install --create-namespace pluto ozg-base-apps-snapshot/pluto -f ${values} --set kop.bezeichner=${bezeichner} --namespace ${namespace} --version ${getLatestChartVersion('pluto').trim()} --wait --wait-for-jobs"
} }
}
sh "kubectl rollout status statefulset/pluto-database -n ${namespace}" sh "kubectl rollout status statefulset/pluto-database -n ${namespace}"
} }
...@@ -351,8 +357,13 @@ Void startPluto(String namespace, String values, String bezeichner) { ...@@ -351,8 +357,13 @@ Void startPluto(String namespace, String values, String bezeichner) {
Void startGoofy(String namespace, String values, String imageTag, String bezeichner) { Void startGoofy(String namespace, String values, String imageTag, String bezeichner) {
container("k8s") { container("k8s") {
dir('goofy-client/apps/goofy-e2e/deployment-values/goofy') { dir('goofy-client/apps/goofy-e2e/deployment-values/goofy') {
if(env.BRANCH_NAME == 'release') {
sh "helm upgrade --install --create-namespace goofy ozg-base-apps/goofy -f ${values} --set image.tag=${imageTag} --set kop.bezeichner=${bezeichner} --namespace ${namespace} --wait --wait-for-jobs"
}
else {
sh "helm upgrade --install --create-namespace goofy ozg-base-apps-snapshot/goofy -f ${values} --set image.tag=${imageTag} --set kop.bezeichner=${bezeichner} --namespace ${namespace} --version ${getLatestChartVersion('goofy').trim()} --wait --wait-for-jobs" sh "helm upgrade --install --create-namespace goofy ozg-base-apps-snapshot/goofy -f ${values} --set image.tag=${imageTag} --set kop.bezeichner=${bezeichner} --namespace ${namespace} --version ${getLatestChartVersion('goofy').trim()} --wait --wait-for-jobs"
} }
}
createKeycloakGroups(namespace) createKeycloakGroups(namespace)
generateKeycloakUserYaml(namespace) generateKeycloakUserYaml(namespace)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment