-Pdeploy-sonarsource \
-B -e -V
+ elif [[ "${TRAVIS_BRANCH}" == "branch-"* ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
+ strongEcho 'Build and deploy'
+
+ # Do not deploy a SNAPSHOT version but the release version related to this build
+ set_maven_build_version $TRAVIS_BUILD_NUMBER
+
+ # analysis is currently executed by SonarSource internal infrastructure
+ mvn deploy \
+ -Pdeploy-sonarsource \
+ -B -e -V
+
elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then
strongEcho 'Build and analyze pull request, no deploy'