We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b4b0fe commit da7ede6Copy full SHA for da7ede6
1 file changed
sonar-scanner.sh
@@ -25,12 +25,17 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
25
-Dsonar.pullrequest.branch=$TRAVIS_PULL_REQUEST_BRANCH \
26
-Dsonar.pullrequest.base=$TRAVIS_BRANCH
27
else
28
- if [ "$TRAVIS_BRANCH" == 'development' ]; then
29
- TARGET_BRANCH='master'
+ if [ "$TRAVIS_BRANCH" == 'master' ]; then
+ sonar_scanner \
30
+ -Dsonar.branch.name=$TRAVIS_BRANCH
31
- TARGET_BRANCH='development'
32
+ if [ "$TRAVIS_BRANCH" == 'development' ]; then
33
+ TARGET_BRANCH='master'
34
+ else
35
+ TARGET_BRANCH='development'
36
+ fi
37
38
+ -Dsonar.branch.name=$TRAVIS_BRANCH \
39
+ -Dsonar.branch.target=$TARGET_BRANCH
40
fi
- sonar_scanner \
- -Dsonar.branch.name=$TRAVIS_BRANCH \
- -Dsonar.branch.target=$TARGET_BRANCH
41
0 commit comments