Skip to content
Snippets Groups Projects
Commit 0c49930f authored by L4168's avatar L4168
Browse files

gitlab-ci fix

parent 3e4b1d89
No related branches found
No related tags found
2 merge requests!59Development to master,!31Development
Pipeline #64270 failed
stages:
- purge
- e2e-test
- analysis
purge-old-containers:
image:
......@@ -40,3 +41,14 @@ e2e-testing:
- echo 'create extension "uuid-ossp";' | docker exec -i postgis psql -U postgres ehasa
allow_failure: true
sonarqube:
stage: analysis
image: ciricihq/gitlab-sonar-scanner
tags: ['docker']
only:
- Development
variables:
SONAR_URL: http://10.166.0.3:9000
SONAR_ANALYSIS_MODE: publish
script:
- gitlab-sonar-scanner -Dsonar.host.url=http://10.166.0.3:9000 -Dsonar.projectKey=backend -Dsonar.login=$SONAR_USER -Dsonar.password=$SONAR_PASS -Dsonar.gitlab.project_id=$CI_PROJECT_ID -Dsonar.gitlab.commit_sha=$CI_COMMIT_REF -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME
stages:
- analysis
sonarqube:
stage: analysis
image: ciricihq/gitlab-sonar-scanner
variables:
SONAR_URL: http://10.166.0.3:9000
SONAR_ANALYSIS_MODE: publish
script:
- gitlab-sonar-scanner -Dsonar.host.url=http://10.166.0.3:9000 -Dsonar.projectKey=backend -Dsonar.login=$SONAR_USER -Dsonar.password=$SONAR_PASS -Dsonar.gitlab.project_id=$CI_PROJECT_ID -Dsonar.gitlab.commit_sha=$CI_COMMIT_REF -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment