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
2525 -Dsonar.pullrequest.branch=$TRAVIS_PULL_REQUEST_BRANCH \
2626 -Dsonar.pullrequest.base=$TRAVIS_BRANCH
2727else
28- if [ " $TRAVIS_BRANCH " == ' development' ]; then
29- TARGET_BRANCH=' master'
28+ if [ " $TRAVIS_BRANCH " == ' master' ]; then
29+ sonar_scanner \
30+ -Dsonar.branch.name=$TRAVIS_BRANCH
3031 else
31- TARGET_BRANCH=' development'
32+ if [ " $TRAVIS_BRANCH " == ' development' ]; then
33+ TARGET_BRANCH=' master'
34+ else
35+ TARGET_BRANCH=' development'
36+ fi
37+ sonar_scanner \
38+ -Dsonar.branch.name=$TRAVIS_BRANCH \
39+ -Dsonar.branch.target=$TARGET_BRANCH
3240 fi
33- sonar_scanner \
34- -Dsonar.branch.name=$TRAVIS_BRANCH \
35- -Dsonar.branch.target=$TARGET_BRANCH
3641fi
You can’t perform that action at this time.
0 commit comments