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

changed scanner image

parent 825a6a72
No related branches found
No related tags found
2 merge requests!59Development to master,!31Development
Pipeline #64284 canceled
......@@ -43,13 +43,18 @@ e2e-testing:
sonarqube:
stage: analysis
image: jramcast/gitlab-ci-sonarqube
tags: ['docker']
only:
- Development
image: ciricihq/gitlab-sonar-scanner
variables:
SONAR_URL: http://10.166.0.3:9000
SONAR_ANALYSIS_MODE: preview
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
sonarqube-reports:
stage: analysis
image: ciricihq/gitlab-sonar-scanner
variables:
SONAR_URL: http://10.166.0.3:9000
SONAR_LOGIN: $SONAR_TOKEN
SONAR_ANALYSIS_MODE: publish
script:
- sonar-scanner-preview
- sonar-scanner
- 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
......@@ -2,4 +2,3 @@ sonar.projectKey=backend
sonar.projectName=OverflowBackend
sonar.projectVersion=1.0
sonar.sources=.
sonar.analysis.mode=publish
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