File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- echo " current branch is : " $BUILDKITE_PIPELINE_DEFAULT_BRANCH
2- SonarStatus_Url=" https://sonarcloud.io/api/qualitygates/project_status?projectKey=java-tron&branch=" $BUILDKITE_PIPELINE_DEFAULT_BRANCH
1+ echo " current branch is : " $BUILDKITE_BRANCH
2+ SonarStatus_Url=" https://sonarcloud.io/api/qualitygates/project_status?projectKey=java-tron&branch=" $BUILDKITE_BRANCH
33Status=` curl -s $SonarStatus_Url | jq ' .projectStatus.status' `
44echo " current branch sonarcloud status is : " $Status
5- if [ " $Status " x = " ERROR" x ]; then
5+ if [ " $Status " = ' "ERROR"' ]; then
66 echo " Sonar Check Failed"
7- echo " Please visit https://sonarcloud.io/dashboard?branch=" $BUILDKITE_PIPELINE_DEFAULT_BRANCH " &id=java-tron for more details"
7+ echo " Please visit https://sonarcloud.io/dashboard?branch=" $BUILDKITE_BRANCH " &id=java-tron for more details"
88 exit 1
99else
1010 echo " Sonar Check Pass"
You can’t perform that action at this time.
0 commit comments