Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2021
Kelas D
PT Gizi Sehat - Dietela
Dietela Backend
Commits
eeb9f04e
Commit
eeb9f04e
authored
May 02, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
eeb9f04e
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment