Update Jenkinsfile
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good

This commit is contained in:
2025-07-15 11:28:34 +02:00
parent 2444349694
commit 4633769366

14
Jenkinsfile vendored
View File

@@ -111,16 +111,22 @@ pipeline {
sed -i 's/^version: .*/version: ${newTag}/' Chart.yaml
sed -i 's/^appVersion: .*/appVersion: ${newTag}/' Chart.yaml
echo "[INFO] Packaging chart..."
helm package .
echo "[INFO] Removing old chart packages..."
cd ..
rm -f tatort-*.tgz
echo "[INFO] Updating index.yaml..."
echo "[INFO] Packaging chart into parent dir..."
cd tatort
helm package . --destination ..
echo "[INFO] Updating index.yaml in parent dir..."
cd ..
helm repo index . --merge index.yaml || helm repo index .
echo "[INFO] Committing Helm chart changes..."
git config user.name "Jenkins"
git config user.email "jenkins@innohub.local"
git add values.yaml Chart.yaml *.tgz index.yaml
git add tatort/values.yaml tatort/Chart.yaml tatort-*.tgz index.yaml
git commit -m "ci: bump tatort chart to ${newTag}, package + index"
git push origin main
"""