Browse Source

Fix env variables of pull request analysis on Travis

tags/5.3-RC1
Simon Brandhof 8 years ago
parent
commit
d4a1f0b461
2 changed files with 4 additions and 4 deletions
  1. 1
    1
      .travis.yml
  2. 3
    3
      travis.sh

+ 1
- 1
.travis.yml View File

@@ -14,7 +14,7 @@ env:
- JOB=ITS IT_CATEGORY=Category3
- JOB=ITS IT_CATEGORY=Category4
- JOB=ITS IT_CATEGORY=Plugins
- JOB=PRANALYSIS
- JOB=PULL_REQUEST_ANALYSIS

matrix:
fast_finish: true

+ 3
- 3
travis.sh View File

@@ -39,7 +39,7 @@ set +eu
cd server/sonar-web && npm install && npm test
;;

PRANALYSIS)
PULL_REQUEST_ANALYSIS)
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then

# For security reasons environment variables are not available on the pull requests
@@ -57,12 +57,12 @@ PRANALYSIS)
-Dclirr=true \
-Dsonar.analysis.mode=preview \
-Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST \
-Dsonar.github.repository=$SONAR_GITHUB_REPOSITORY \
-Dsonar.github.repository=$TRAVIS_REPO_SLUG \
-Dsonar.github.login=$SONAR_GITHUB_LOGIN \
-Dsonar.github.oauth=$SONAR_GITHUB_OAUTH \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_LOGIN \
-Dsonar.password=$SONAR_PASSWD
-Dsonar.password=$SONAR_PASSWORD
else
echo "Pull requests are not analyzed when coming from outside repositories"
fi

Loading…
Cancel
Save