added another library to add and update helm repo

This commit is contained in:
2025-05-26 12:16:53 +03:00
parent 6a55d62f7b
commit a72b3ca50f

7
vars/addHelmRepo.groovy Normal file
View File

@@ -0,0 +1,7 @@
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"
}
}