Skip to content

Commit

Permalink
ci: Don't configure Sonar on CI for release branches (argoproj#2811)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Apr 27, 2020
1 parent d9c5407 commit 1d30f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:
make test
- run: |
cp sonar-project.properties dist/
if [ $CIRCLE_BRANCH != master ]; then
if [ "$(echo "$CIRCLE_BRANCH" | grep 'master\|release-')" = '' ]; then
echo "sonar.pullrequest.branch=$CIRCLE_BRANCH" >> sonar-project.properties
echo "sonar.pullrequest.key=$CIRCLE_PR_NUMBER" >> sonar-project.properties
fi
Expand Down

0 comments on commit 1d30f70

Please sign in to comment.