#!/bin/bash

if [ -n "$SONAR_GITHUB_OAUTH" ]; then
  ./gradlew sonarqube \
    -Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST \
    -Dsonar.github.oauth=$SONAR_GITHUB_OAUTH \
    -Dsonar.analysis.mode=issue
else
  echo "No oauth token available"
fi

#!/bin/bash
set -ev

if [ -n "$SONAR_GITHUB_OAUTH" ]; then
  ./gradlew sonarqube \
    -Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST \
    -Dsonar.github.oauth=$SONAR_GITHUB_OAUTH \
    -Dsonar.analysis.mode=issue \
    --stacktrace --info
else
  echo "No oauth token available"
fi

Add log on SonarQube analyse on PR from Travis
Add log on SonarQube analyse on PR from Travis
