Added sonar.projectKey to build.grade.

This commit is contained in:
Erik C. Thauvin 2019-04-02 11:20:29 -07:00
parent dcc21a5544
commit b68048a2af
3 changed files with 11 additions and 9 deletions

View file

@ -1,5 +1,9 @@
language: java
addons:
sonarcloud:
organization: "ethauvin-github"
jdk:
- oraclejdk8
- openjdk12
@ -9,9 +13,6 @@ before_install:
after_success:
- |
if [ "${TRAVIS_PULL_REQUEST}" != "false" ] && [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then
./gradlew sonarqube \
-Dsonar.github.pullRequest=${TRAVIS_PULL_REQUEST} \
-Dsonar.github.oauth=${SONAR_GITHUB} \
-Dsonar.login=${SONAR_TOKEN}
if [ "${TRAVIS_TEST_RESULT}" == 0 ] && [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then
./gradlew sonarqube
fi