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 1
1
#! /usr/bin/env bash
2
2
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
+
3
9
function main {
4
10
require_no_pull_request
5
11
./gradlew sonarqube
Original file line number Diff line number Diff line change 2
2
3
3
#
4
4
# 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.
8
8
#
9
9
# 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.
11
11
#
12
12
13
13
function main {
You can’t perform that action at this time.
0 commit comments