Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Khalid Ali
bookshare-backend
Commits
68983e75
Commit
68983e75
authored
Jan 13, 2019
by
Khalid Ali
Browse files
Use environment variables
parent
527a914b
Changes
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
68983e75
...
...
@@ -3,7 +3,7 @@ sonarqube_master_job:
only
:
-
master
script
:
-
./gradlew sonarqube -Dsonar.host.url=
http://localhost:9000
-Dsonar.login=
admin
-Dsonar.password=
admin
-
./gradlew sonarqube -Dsonar.host.url=
$SONAR_URL
-Dsonar.login=
$SONAR_LOGIN
-Dsonar.password=
$SONAR_PASS
sonarqube_preview_feature_job
:
stage
:
test
...
...
@@ -12,4 +12,4 @@ sonarqube_preview_feature_job:
script
:
-
git checkout origin/master
-
git merge $CI_COMMIT_REF --no-commit --no-ff
-
./gradlew sonarqube -Dsonar.host.url=http://localhost:9000 -Dsonar.login=admin -Dsonar.password=admin -Dsonar.analysis.mode=preview -Dsonar.gitlab.commit_sha=$CI_BUILD_REF -Dsonar.gitlab.ref=$CI_BUILD_REF_NAME -Dsonar.gitab.project_id=$CI_PROJECT_ID
\ No newline at end of file
-
./gradlew sonarqube -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_LOGIN -Dsonar.password=$SONAR_PASS -Dsonar.analysis.mode=preview -Dsonar.gitlab.commit_sha=$CI_BUILD_REF -Dsonar.gitlab.ref=$CI_BUILD_REF_NAME -Dsonar.gitab.project_id=$CI_PROJECT_ID
\ No newline at end of file
Write
Preview
Markdown
is supported
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