Skip to content
Snippets Groups Projects
Commit a3e10d26 authored by Soeren Peters's avatar Soeren Peters
Browse files

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

parent 8399be6b
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