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

truongbb - test ci

parent a81da0bf
Pipeline #356 failed with stages
in 42 seconds
......@@ -38,9 +38,24 @@ sub_compile(){
sub_sonar-scan(){
# /root/sonar-scanner/bin/sonar-scanner
rm ./target/
mvn clean --settings settings.xml package sonar:sonar \
-Dsonar.projectName='SpringCIAdvanced' \
-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
then
curl -s -w "\n%{http_code}" 'http://192.168.1.210:9000/api/qualitygates/project_status?projectKey=spring-ci' | {
read body
read code
echo ${code}
echo ${body}
}
else
sleep 1m # wait 1 minute before continue
fi
done
}
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