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

truongbb - test ci

parent 77650878
Pipeline #363 failed with stages
in 1 minute
......@@ -42,23 +42,13 @@ sub_sonar-scan(){
mvn clean --settings settings.xml package sonar:sonar \
-Dsonar.projectName='SpringCIAdvanced' \
-Dsonar.projectKey='spring-ci-advanced'
file = "/root/GitlabRunner/repo/spring-ci-advanced/target/sonar/report-task.txt"
while true; do
if [[ -f "$file" ]] # 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"
read body
read code
echo ${code}
echo ${body}
break
}
else
echo "222222222222"
sleep 0.5m # wait 1 minute before continue
fi
done
curl -s -w "\n%{http_code}" 'http://192.168.1.210:9000/api/qualitygates/project_status?projectKey=spring-ci' | {
echo "1111111111111111111111"
read body
read code
echo ${code}
echo ${body}
}
}
sub_send-email(){
......
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