File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ #
4+ # Sonarqube analysis cannot be made when building pull requests because secure
5+ # variables are not available in such builds. To prevent build failures, the
6+ # sonarqube target is only invoked if not building a pull request.
7+ #
8+
39function main {
410 require_no_pull_request
511 ./gradlew sonarqube
Original file line number Diff line number Diff line change 22
33#
44# When building branches Travis does not check out the branch but a specific
5- # commit. This results in the working copy being in "detached HEAD" state. The
6- # breaks the logic for deriving version numbers from branch names in the build
7- # script.
5+ # commit. This results in the working copy being in "detached HEAD" state.
6+ # This breaks the logic for deriving version numbers from branch names in the
7+ # build script.
88#
99# This script checks if the current build corresponds to the tip of a branch.
10- # If it is then the branch is checked out.
10+ # If it does then the branch is checked out.
1111#
1212
1313function main {
You can’t perform that action at this time.
0 commit comments