Skip to content

Commit e94d2e4

Browse files
try with deleting chart's dependencies
1 parent 0546cde commit e94d2e4

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.cirrus/azure_app_verify_and_publish.sh

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff 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
3636
rm -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
3940
mkdir -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
4658
helm dependency update
4759
echo "Helm dependencies updated. Packaged subchart is now in sonarqube-azure/charts/."
4860

0 commit comments

Comments
 (0)