From a2e21d4a9bdfbdcd3f56c3d888a09b5d019f1feb Mon Sep 17 00:00:00 2001
From: Fabien Forestier <fforestier@deb-sat-test-2.neogeo.local>
Date: Tue, 25 Aug 2020 15:52:58 +0200
Subject: [PATCH] Add build tag on sonarqube job

---
 .gitlab-ci.yml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4578729..90ebd3d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,6 +7,8 @@ variables:
 
 sonarqube:
   stage: sonar-analysis
+  tags:
+    - build
   only:
     - master
   before_script:
@@ -32,10 +34,10 @@ build_development:
   script:
     - export TAG=$CI_COMMIT_SHORT_SHA
     - export PROXY_QUERY_BIND_PORT=9002
-    - docker-compose build 
+    - docker-compose build
     - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
     - docker-compose push
-    - "curl -X POST -F token=$CI_JOB_TOKEN -F ref=master -F variables[TAG]=${TAG} https://forge.grandlyon.com/api/v4/projects/336/trigger/pipeline"
+    - 'curl -X POST -F token=$CI_JOB_TOKEN -F ref=master -F variables[TAG]=${TAG} https://forge.grandlyon.com/api/v4/projects/336/trigger/pipeline'
 
 build_release:
   stage: build
@@ -48,4 +50,4 @@ build_release:
     - export PROXY_QUERY_BIND_PORT=9002
     - docker-compose build
     - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-    - docker-compose push
\ No newline at end of file
+    - docker-compose push
-- 
GitLab