diff options
author | Tom <thomas.verin@sonarsource.com> | 2018-01-30 14:08:47 +0100 |
---|---|---|
committer | tomverin <thomas.verin@sonarsource.com> | 2018-02-05 16:23:25 +0100 |
commit | b0bb223ac2dcc5fbbf719728e5fefe24e9417e4e (patch) | |
tree | bba816c1995c314687415b5812779572b7da84e7 /travis.sh | |
parent | bf512ec601e12a5b0705c6f02d58a24812f8aef3 (diff) | |
download | sonarqube-b0bb223ac2dcc5fbbf719728e5fefe24e9417e4e.tar.gz sonarqube-b0bb223ac2dcc5fbbf719728e5fefe24e9417e4e.zip |
Enable build and QA for dogfood branch
Diffstat (limited to 'travis.sh')
-rwxr-xr-x | travis.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/travis.sh b/travis.sh index 7145df65bb8..27f69783431 100755 --- a/travis.sh +++ b/travis.sh @@ -169,7 +169,7 @@ BUILD) -Dsonar.analysis.pipeline=$TRAVIS_BUILD_NUMBER \ -Dsonar.analysis.sha1=$TRAVIS_COMMIT \ -Dsonar.analysis.repository=$TRAVIS_REPO_SLUG - + elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then echo 'Build and analyze internal pull request' @@ -192,6 +192,14 @@ BUILD) -Dsonar.pullrequest.id=$TRAVIS_PULL_REQUEST \ -Dsonar.pullrequest.github.id=$TRAVIS_PULL_REQUEST \ -Dsonar.pullrequest.github.repository=$TRAVIS_REPO_SLUG + + elif [[ "$TRAVIS_BRANCH" == "dogfood-on-next" ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then + echo 'Build dogfood branch' + + mvn org.jacoco:jacoco-maven-plugin:prepare-agent deploy \ + $MAVEN_ARGS \ + -Pdeploy-sonarsource,release + else echo 'Build feature branch or external pull request' |