Added GitHub token.

This commit is contained in:
Erik C. Thauvin 2019-04-02 10:35:52 -07:00
parent 2088a07ab5
commit d86f84583c

View file

@ -10,5 +10,8 @@ before_install:
after_success:
- |
if [ "${TRAVIS_PULL_REQUEST}" != "false" ] && [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then
./gradlew sonarqube -Dsonar.login=${SONAR_TOKEN} -Dsonar.organization=${SONAR_GITHUB}
./gradlew sonarqube \
-Dsonar.github.pullRequest=${TRAVIS_PULL_REQUEST} \
-Dsonar.github.oauth=${SONAR_GITHUB} \
-Dsonar.login=${SONAR_TOKEN} \
fi