File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,17 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
25
25
-Dsonar.pullrequest.branch=$TRAVIS_PULL_REQUEST_BRANCH \
26
26
-Dsonar.pullrequest.base=$TRAVIS_BRANCH
27
27
else
28
- if [ " $TRAVIS_BRANCH " == ' develop' ]; then
29
- TARGET_BRANCH=' master'
28
+ if [ " $TRAVIS_BRANCH " == ' master' ]; then
29
+ sonar_scanner \
30
+ -Dsonar.branch.name=$TRAVIS_BRANCH
30
31
else
31
- TARGET_BRANCH=' develop'
32
+ if [ " $TRAVIS_BRANCH " == ' develop' ]; then
33
+ TARGET_BRANCH=' master'
34
+ else
35
+ TARGET_BRANCH=' develop'
36
+ fi
37
+ sonar_scanner \
38
+ -Dsonar.branch.name=$TRAVIS_BRANCH \
39
+ -Dsonar.branch.target=$TARGET_BRANCH
32
40
fi
33
- sonar_scanner \
34
- -Dsonar.branch.name=$TRAVIS_BRANCH \
35
- -Dsonar.branch.target=$TARGET_BRANCH
36
41
fi
You can’t perform that action at this time.
0 commit comments