Skip to content

Commit

Permalink
sonar-cloud without pr?
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed Jun 23, 2020
1 parent f86c16b commit f4726fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/sc/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ GIT_BRANCH=${2:-`git rev-parse --abbrev-ref HEAD | tr -d "\n"`}

# Extract the pull request id
PR_FLAG=""
if [ ! -z $CIRCLE_PULL_REQUEST ]; then
if [[ "${CIRCLE_PULL_REQUEST:-}" != "" ]]; then
PR_ID=${CIRCLE_PULL_REQUEST##*/}
PR_FLAG="-e SONAR_PULL_REQUEST=$PR_ID"
fi
Expand Down

0 comments on commit f4726fa

Please sign in to comment.