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
data-discovery
Commits
f8c9ab2e
Commit
f8c9ab2e
authored
May 07, 2021
by
Erik Kimmel
Committed by
Raphaël Flores
May 07, 2021
Browse files
Chore: update deprecated sonarqube properties and add properties needed for MR decoration.
parent
9e412e96
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
f8c9ab2e
...
...
@@ -129,17 +129,21 @@ test-and-sonarqube:
exec
chroot
--userspec=1000
/
elasticsearch
-Ediscovery.type=single-node
-Ecluster.name=elasticsearch"
variables
:
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"
script
:
-
./gradlew --parallel test
-
./gradlew --parallel test
jacocoTestReport
-
find /tmp/node/*/bin -name node -exec ln -s {} /tmp/node/node \;
-
export PATH="/tmp/node/:$PATH"
-
./gradlew sonarqube -x test $SONAR_BRANCH_OPTS
cache
:
key
:
"
$CI_COMMIT_REF_NAME"
#key: "$CI_COMMIT_REF_NAME"
key
:
"
${CI_JOB_NAME}"
policy
:
pull-push
paths
:
-
.gradle
-
.sonar/cache
-
frontend/.gradle/
-
frontend/node_modules/
artifacts
:
...
...
build.gradle.kts
View file @
f8c9ab2e
plugins
{
id
(
"org.sonarqube"
)
version
"2.8"
id
(
"org.sonarqube"
)
version
"3.2.0"
}
sonarqube
{
properties
{
property
(
"sonar.projectKey"
,
"urgi-is_data-discovery_AXlG7GtvPgTGgvpuDgeV"
)
property
(
"sonar.qualitygate.wait"
,
false
)
}
}
docker.env
View file @
f8c9ab2e
...
...
@@ -6,7 +6,6 @@ systemProp.sonar.sources=frontend/src
systemProp.sonar.language=typescript
systemProp.sonar.scm.provider=git
systemProp.sonar.typescript.tsconfigPath=frontend/tsconfig.json
systemProp.sonar.typescript.lcov.reportPaths=frontend/coverage/lcov.info
#systemProp.sonar.typescript.node=/tmp/node/node-v12.14.1-linux-x64/bin/node
systemProp.sonar.typescript.node=/tmp/node/node
systemProp.sonar.javascript.lcov.reportPaths=frontend/coverage/lcov.info
systemProp.sonar.nodejs.executable=/tmp/node/node
systemProp.sonar.typescript.exclusions=**/*.spec.ts
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