Commit f774715e by Administrator

Update sonar_preview.sh

parent c2efbfdb
Pipeline #36 failed with stage
in 1 second
...@@ -7,9 +7,7 @@ mvn --batch-mode verify sonar:sonar \ ...@@ -7,9 +7,7 @@ mvn --batch-mode verify sonar:sonar \
-Dsonar.analysis.mode=preview \ -Dsonar.analysis.mode=preview \
-Dsonar.gitlab.project_id=$CI_PROJECT_ID \ -Dsonar.gitlab.project_id=$CI_PROJECT_ID \
-Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA \ -Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA \
-Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME \ -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME
clean install
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "sonarqube code-analyze-preview over." echo "sonarqube code-analyze-preview over."
fi fi
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment