1#!/bin/bash 2 3if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then 4 if [ -n "$SONAR_GITHUB_OAUTH" ]; then 5 ./gradlew sonarqube \ 6 -Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST \ 7 -Dsonar.github.oauth=$SONAR_GITHUB_OAUTH \ 8 else 9 echo "No oauth token available" 10 fi 11fi