File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,27 @@ echo "1. Cleaning up old build artifacts..."
3434# - The charts/ directory within the wrapper chart (containing the .tgz)
3535# - The Chart.lock file within the wrapper chart
3636rm -rf .cnab/ " ${APPLICATION_NAME} -azure-${SONARQUBE_CHART_VERSION} " sonarqube-azure/charts/ sonarqube-azure/Chart.lock
37+ rm -rf ../charts/sonarqube/charts
3738
3839# Ensure the wrapper chart's charts/ directory exists for unpacking
3940mkdir -p sonarqube-azure/charts/
4041
41- # 2. Navigate into the wrapper chart directory and update Helm dependencies
42- echo " 2. Updating Helm dependencies for the wrapper chart (sonarqube-azure)..."
42+
43+ # 2. Clean existing dependencies and rebuild from scratch
44+ echo " 2a. Cleaning existing SonarQube chart dependencies..."
45+ cd ../charts/sonarqube
46+ rm -rf charts/ Chart.lock
47+ echo " Existing dependencies cleaned. Rebuilding from scratch..."
48+
49+ # 2b. Build fresh SonarQube dependencies
50+ helm dependency update
51+ echo " SonarQube dependencies rebuilt successfully."
52+
53+ # 2c. Navigate into the wrapper chart directory and update Helm dependencies
54+ echo " 2c. Updating Helm dependencies for the wrapper chart (sonarqube-azure)..."
4355# This command will read sonarqube-azure/Chart.yaml and package the 'sonarqube'
4456# dependency (from ../charts/sonarqube) into sonarqube-azure/charts/sonarqube-${SONARQUBE_CHART_VERSION}.tgz
45- cd sonarqube-azure
57+ cd ../../azure-marketplace-k8s-app/ sonarqube-azure
4658helm dependency update
4759echo " Helm dependencies updated. Packaged subchart is now in sonarqube-azure/charts/."
4860
You can’t perform that action at this time.
0 commit comments