From 845a252da2bac622c2c5e86af6d28ad35d477d34 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Mon, 28 Nov 2022 17:38:19 +0100
Subject: [PATCH] OZG-3184 OZG-3222 remove helm repo

---
 Jenkinsfile | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 6d04b41762..b83d7102f5 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))
-- 
GitLab