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

truongbb - test ci

parent e5b91ab7
Pipeline #360 canceled with stages
in 4 minutes and 41 seconds
...@@ -47,12 +47,15 @@ sub_sonar-scan(){ ...@@ -47,12 +47,15 @@ sub_sonar-scan(){
if [[ -f "$file" ]] # file report-task.txt will be appeared after sonnar scanner task done if [[ -f "$file" ]] # file report-task.txt will be appeared after sonnar scanner task done
then then
curl -s -w "\n%{http_code}" 'http://192.168.1.210:9000/api/qualitygates/project_status?projectKey=spring-ci' | { curl -s -w "\n%{http_code}" 'http://192.168.1.210:9000/api/qualitygates/project_status?projectKey=spring-ci' | {
echo "1111111111111111111111"
read body read body
read code read code
echo ${code} echo ${code}
echo ${body} echo ${body}
break;
} }
else else
echo "222222222222"
sleep 0.5m # wait 1 minute before continue sleep 0.5m # wait 1 minute before continue
fi fi
done done
......
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