Fakultas Ilmu Komputer UI

Commit eeb9f04e authored by Ami's avatar Ami
Browse files

modifying ci-yml to differentiate sonarscanner on development branches and staging/master

parent 112e7356
Pipeline #74437 passed with stages
in 7 minutes and 52 seconds
......@@ -48,6 +48,26 @@ SonarScanner:
-Dsonar.projectKey=$SONARQUBE_PROJECT_KEY
-Dsonar.branch.name=$CI_COMMIT_REF_NAME
-Dsonar.python.coverage.reportPaths=coverage.xml
only:
- master
- staging
SonarScanner-Dev:
image:
name: sonarsource/sonar-scanner-cli:4.6
entrypoint: [""]
stage: sonar-scanner
script:
- sonar-scanner
-Dsonar.host.url=https://pmpl.cs.ui.ac.id/sonarqube
-Dsonar.login=$SONARQUBE_TOKEN
-Dsonar.projectKey=$SONARQUBE_PROJECT_KEY
-Dsonar.branch.name=$CI_COMMIT_REF_NAME
-Dsonar.branch.target=staging
-Dsonar.python.coverage.reportPaths=coverage.xml
except:
- master
- staging
DeploymentStaging:
image: ruby:2.4
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment