Files
my-jenkins-library/vars/addHelmRepo.groovy

8 lines
219 B
Groovy

def call(String repoName, String repoUrl) {
container('helm') {
sh "helm repo add ${repoName} ${repoUrl}"
sh 'helm repo update'
echo "Helm repository '${repoName}' added and updated"
}
}