Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc49e49

Browse files
committed
Fixed issue with sonar scanner failing on PRs from other repositories.
1 parent 512bb1c commit dc49e49

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.travis/run_sonar_scanner.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ else
3030
fi
3131

3232

33-
#Are we running on develop branch ?
33+
#Are we running on utPLSQL repo and not an external PR?
3434
echo "Check if we running from develop or on branch"
35-
if [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ] && [[ ! "${BRANCH}" =~ ^(release/v[0-9]+\.[0-9]+\.[0-9]+.*|"${MAIN_DEV_BRANCH}")$ ]]; then
35+
if [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ] && [ "${TRAVIS_PULL_REQUEST_SLUG}" = "${TRAVIS_REPO_SLUG}" ] && \
36+
[[ ! "${BRANCH}" =~ ^(release/v[0-9]+\.[0-9]+\.[0-9]+.*|"${MAIN_DEV_BRANCH}")$ ]]; then
3637

3738
echo "" >> sonar-project.properties
3839
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then

0 commit comments

Comments
 (0)