diff --git a/Jenkinsfile b/Jenkinsfile index 6d04b417629a84979534649bbec46a230b2b1d0a..b83d7102f59bc4b72e54b0253a6b54979634ad71 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -136,8 +136,6 @@ pipeline { sh 'cp ${KUBE_CONFIG} ~/.kube/config' } - initHelmRepo() - sh 'helm version' } } @@ -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) { script { def elasticsearch = readJSON ( text: sh (script: "kubectl get secret elasticsearch-credentials -n ${namespace} -o jsonpath={.data}", returnStdout: true))