Commit df5af6cc authored by Bùi Bá Trường's avatar Bùi Bá Trường

truongbb - test ci

parent 7a93b754
Pipeline #361 failed with stages
in 23 seconds
......@@ -44,7 +44,7 @@ sub_sonar-scan(){
-Dsonar.projectKey='spring-ci-advanced'
file = "./target/sonar/report-task.txt"
while true; do
if [[ -f "$file" ]] # file report-task.txt will be appeared after sonnar scanner task done
if [[ test -e "$file" && 1 || 0 ]] # file report-task.txt will be appeared after sonnar scanner task done
then
curl -s -w "\n%{http_code}" 'http://192.168.1.210:9000/api/qualitygates/project_status?projectKey=spring-ci' | {
echo "1111111111111111111111"
......@@ -52,7 +52,7 @@ sub_sonar-scan(){
read code
echo ${code}
echo ${body}
break;
break
}
else
echo "222222222222"
......
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