Skip to content

Commit

Permalink
Enable Jacoco profile for CircleCI Sonar-related jobs (#1305)
Browse files Browse the repository at this point in the history
Signed-off-by: Rafal Ochyra <[email protected]>
  • Loading branch information
j-arrow authored and rhuss committed Nov 29, 2019
1 parent 0098a49 commit 413c681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
key: dmp-sonar-pr-{{ checksum "pom.xml" }}
- run: |
if [ -n "${CIRCLE_PR_NUMBER}" ]; then
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar \
mvn clean -Pjacoco org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar \
-Dsonar.pullrequest.base=master \
-Dsonar.pullrequest.branch=${CIRCLE_BRANCH} \
-Dsonar.pullrequest.key=${CIRCLE_PR_NUMBER} \
Expand All @@ -66,7 +66,7 @@ jobs:
- restore_cache:
key: dmp-sonar-{{ checksum "pom.xml" }}
- run: |
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar \
mvn clean -Pjacoco org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=${SONARQUBE_TOKEN}
- save_cache:
Expand Down

0 comments on commit 413c681

Please sign in to comment.