Skip to content

Commit 5302753

Browse files
Workaround for helm-cache issues
1 parent e94d2e4 commit 5302753

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.cirrus/azure_app_verify_and_publish.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,19 @@ rm -rf ../charts/sonarqube/charts
4040
mkdir -p sonarqube-azure/charts/
4141

4242

43-
# 2. Clean existing dependencies and rebuild from scratch
44-
echo "2a. Cleaning existing SonarQube chart dependencies..."
43+
# 2. Build all required Helm chart dependencies
44+
echo "2a. Build fresh SonarQube dependencies..."
4545
cd ../charts/sonarqube
4646
rm -rf charts/ Chart.lock
47-
echo "Existing dependencies cleaned. Rebuilding from scratch..."
48-
49-
# 2b. Build fresh SonarQube dependencies
5047
helm dependency update
5148
echo "SonarQube dependencies rebuilt successfully."
5249

53-
# 2c. Navigate into the wrapper chart directory and update Helm dependencies
54-
echo "2c. Updating Helm dependencies for the wrapper chart (sonarqube-azure)..."
50+
# 2b. Navigate into the wrapper chart directory and update Helm dependencies
51+
echo "2b. Updating Helm dependencies for the wrapper chart (sonarqube-azure)..."
5552
# This command will read sonarqube-azure/Chart.yaml and package the 'sonarqube'
5653
# dependency (from ../charts/sonarqube) into sonarqube-azure/charts/sonarqube-${SONARQUBE_CHART_VERSION}.tgz
5754
cd ../../azure-marketplace-k8s-app/sonarqube-azure
55+
rm -rf ../../charts/sonarqube/.cache/helm/repository/* # Workaround for Helm caching issues on Cirrus
5856
helm dependency update
5957
echo "Helm dependencies updated. Packaged subchart is now in sonarqube-azure/charts/."
6058

-56.5 KB
Binary file not shown.
-52.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)