Skip to content
Snippets Groups Projects
Commit 6a737517 authored by Sören Peters's avatar Sören Peters
Browse files

Merge branch 'feature/activate_sonarqube' into 'open_source'

Adapt ci file with the url and sonar.login token.

See merge request irmb/VirtualFluids_dev!5
parents 8399be6b a3e10d26
No related branches found
No related tags found
1 merge request!5Adapt ci file with the url and sonar.login token.
......@@ -369,14 +369,12 @@ clang-tidy:
# the reports in this file needs to match the artifacts.
sonar-scanner:
stage: deploy
only:
refs:
- open_source
when: manual
only:
- open_source@irmb/VirtualFluids_dev
variables:
SONAR_HOST_URL: "http://finrod.irmb.bau.tu-bs.de/sonarqube"
SONAR_HOST_URL: "http://gitlab-runner01.irmb.bau.tu-bs.de/sonarqube/"
needs: ["cppcheck","clang-tidy","gcov_gcc_9","gcc_9_rebuild"]
......@@ -386,15 +384,15 @@ sonar-scanner:
- wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.0.0.1744-linux.zip
- unzip sonar-scanner-cli-4.0.0.1744-linux.zip
- cd sonar-scanner-4.0.0.1744-linux/
- echo 'sonar.host.url=http://finrod.irmb.bau.tu-bs.de/sonarqube' >> conf/sonar-scanner.properties
- echo 'sonar.sourceEncoding=UTF-8' >> conf/sonar-scanner.properties
- echo "sonar.host.url=$SONAR_HOST_URL" >> conf/sonar-scanner.properties
- echo "sonar.sourceEncoding=UTF-8" >> conf/sonar-scanner.properties
- cat conf/sonar-scanner.properties
- export PATH+=:$(pwd)/bin
- sonar-scanner -v
script:
- cd $CI_PROJECT_DIR
- sonar-scanner
- sonar-scanner -Dsonar.login=$SONAR_SECURITY_TOKEN
###############################################################################
## Release ##
......
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