Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
urgi-is
FAIDARE
Commits
6e12e55e
Commit
6e12e55e
authored
Jun 15, 2021
by
Erik Kimmel
Browse files
Merge branch 'test/decorate_merge_requests' into 'master'
Activate MR decoration in SonarQube See merge request
!78
parents
02874b97
701f1746
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
6e12e55e
...
...
@@ -64,7 +64,6 @@ test-and-sonarqube:
GRADLE_OPTS
:
"
-Dorg.gradle.daemon=true"
SONAR_USER_HOME
:
"
${CI_PROJECT_DIR}/.sonar"
# Defines the location of the analysis task cache
GIT_DEPTH
:
"
0"
# Tells git to fetch all the branches of the project, required by the analysis task
SONAR_BRANCH_OPTS
:
"
-Dsonar.pullrequest.key=$CI_MERGE_REQUEST_ID
-Dsonar.pullrequest.branch=$CI_COMMIT_REF_NAME"
cache
:
key
:
"
${CI_JOB_NAME}"
paths
:
...
...
@@ -74,7 +73,7 @@ test-and-sonarqube:
-
./gradlew :backend:test jacocoTestReport --parallel
-
find /tmp/node/*/bin -name node -exec ln -s {} /tmp/node/node \;
-
export PATH="/tmp/node/:$PATH"
-
./gradlew -s sonarqube -x test
$SONAR_BRANCH_OPTS
-
./gradlew -s sonarqube -x test
artifacts
:
reports
:
junit
:
...
...
@@ -87,8 +86,6 @@ test-and-sonarqube:
test-and-sonarqube-master
:
extends
:
test-and-sonarqube
variables
:
SONAR_BRANCH_OPTS
:
"
"
only
:
refs
:
-
master
...
...
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