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

truongbb - test ci

parent df5af6cc
Pipeline #362 canceled with stages
in 1 minute and 41 seconds
......@@ -42,9 +42,9 @@ sub_sonar-scan(){
mvn clean --settings settings.xml package sonar:sonar \
-Dsonar.projectName='SpringCIAdvanced' \
-Dsonar.projectKey='spring-ci-advanced'
file = "./target/sonar/report-task.txt"
file = "/root/GitlabRunner/repo/spring-ci-advanced/target/sonar/report-task.txt"
while true; do
if [[ test -e "$file" && 1 || 0 ]] # 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
curl -s -w "\n%{http_code}" 'http://192.168.1.210:9000/api/qualitygates/project_status?projectKey=spring-ci' | {
echo "1111111111111111111111"
......
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