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

truongbb - test ci

parent fd08d237
Pipeline #359 canceled with stages
in 6 minutes and 39 seconds
...@@ -38,24 +38,24 @@ sub_compile(){ ...@@ -38,24 +38,24 @@ sub_compile(){
sub_sonar-scan(){ sub_sonar-scan(){
# /root/sonar-scanner/bin/sonar-scanner # /root/sonar-scanner/bin/sonar-scanner
rm -r ./target/* rm -rf ./target/*
# mvn clean --settings settings.xml package sonar:sonar \ mvn clean --settings settings.xml package sonar:sonar \
# -Dsonar.projectName='SpringCIAdvanced' \ -Dsonar.projectName='SpringCIAdvanced' \
# -Dsonar.projectKey='spring-ci-advanced' -Dsonar.projectKey='spring-ci-advanced'
# file = "./target/sonar/report-task.txt" file = "./target/sonar/report-task.txt"
# while true; do while true; do
# 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' | {
# read body read body
# read code read code
# echo ${code} echo ${code}
# echo ${body} echo ${body}
# } }
# else else
# sleep 1m # wait 1 minute before continue sleep 0.5m # wait 1 minute before continue
# fi fi
# done done
} }
sub_send-email(){ 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