Skip to content
Snippets Groups Projects
Commit 845a252d authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3184 OZG-3222 remove helm repo

parent c30748e9
No related branches found
No related tags found
No related merge requests found
...@@ -136,8 +136,6 @@ pipeline { ...@@ -136,8 +136,6 @@ pipeline {
sh 'cp ${KUBE_CONFIG} ~/.kube/config' sh 'cp ${KUBE_CONFIG} ~/.kube/config'
} }
initHelmRepo()
sh 'helm version' sh 'helm version'
} }
} }
...@@ -746,13 +744,6 @@ String getElementAccessToken() { ...@@ -746,13 +744,6 @@ String getElementAccessToken() {
} }
} }
Void initHelmRepo() {
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 https://nexus.ozg-sh.de/repository/ozg-base-apps --username ${USER} --password ${PASSWORD}'
}
}
def getElasticsearchSecret(namespace) { def getElasticsearchSecret(namespace) {
script { script {
def elasticsearch = readJSON ( text: sh (script: "kubectl get secret elasticsearch-credentials -n ${namespace} -o jsonpath={.data}", returnStdout: true)) def elasticsearch = readJSON ( text: sh (script: "kubectl get secret elasticsearch-credentials -n ${namespace} -o jsonpath={.data}", returnStdout: true))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment