Skip to content
Snippets Groups Projects
Commit aa90c724 authored by Fabien FORESTIER's avatar Fabien FORESTIER
Browse files

Merge branch 'development' into 'master'

Add build tag on sonarqube job

See merge request !82
parents f04909aa b0fb7c85
No related branches found
No related tags found
2 merge requests!84SVP DOS0060958,!82Add build tag on sonarqube job
Pipeline #6910 passed
...@@ -2,19 +2,21 @@ stages: ...@@ -2,19 +2,21 @@ stages:
# - test # - test
- sonar-analysis - sonar-analysis
- build - build
variables: variables:
SONAR_URL: https://sonarqube.forge.grandlyon.com SONAR_URL: https://sonarqube.forge.grandlyon.com
# test: # test:
# stage: test # stage: test
# only: # only:
# - development # - development
# script: # script:
# - docker-compose -f docker-compose-development.tests.yml build # - docker-compose -f docker-compose-development.tests.yml build
code_analysis: code_analysis:
stage: sonar-analysis stage: sonar-analysis
tags:
- build
only: only:
- master - master
before_script: before_script:
...@@ -42,7 +44,7 @@ build_development: ...@@ -42,7 +44,7 @@ build_development:
- export TAG=$CI_COMMIT_SHORT_SHA - export TAG=$CI_COMMIT_SHORT_SHA
- echo ${TAG} - echo ${TAG}
- export WEB_APP_BIND_PORT=8081 - export WEB_APP_BIND_PORT=8081
- docker-compose build --build-arg conf=dev web-app - docker-compose build --build-arg conf=dev web-app
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker-compose push - 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/310/trigger/pipeline" - "curl -X POST -F token=$CI_JOB_TOKEN -F ref=master -F variables[TAG]=${TAG} https://forge.grandlyon.com/api/v4/projects/310/trigger/pipeline"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment