File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030fi
3131
3232
33- # Are we running on develop branch ?
33+ # Are we running on utPLSQL repo and not an external PR ?
3434echo " Check if we running from develop or on branch"
3535if [ " ${TRAVIS_REPO_SLUG} " = " ${UTPLSQL_REPO} " ] && [[ ! " ${BRANCH} " =~ ^(release/v[0-9]+\. [0-9]+\. [0-9]+.* | " ${MAIN_DEV_BRANCH} " )$ ]]; then
3636
@@ -39,12 +39,14 @@ if [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ] && [[ ! "${BRANCH}" =~ ^(releas
3939 echo " Updating sonar properties to include branch ${BRANCH} "
4040 add_sonar_property " ${BRANCH_SONAR_PROPERTY} " " ${BRANCH} "
4141 add_sonar_property " ${BRANCH_SONAR_TARGET_PROPERTY} " " ${MAIN_DEV_BRANCH} "
42- else
42+ elif [ " ${TRAVIS_PULL_REQUEST_SLUG} " = " ${TRAVIS_REPO_SLUG} " ] ; then
4343 echo " Updating sonar properties to include pull request ${BRANCH} "
4444 add_sonar_property " ${PR_SONAR_TOKEN_PROPERTY} " " ${GITHUB_TRAVISCI_TOKEN} "
4545 add_sonar_property " ${PR_SONAR_BRANCH_PROPERTY} " " ${BRANCH} "
4646 add_sonar_property " ${PR_KEY_PROPERTY} " " ${PR} "
4747 add_sonar_property " ${PR_SONAR_BASE_PROPERTY} " " ${PR_BRANCH} "
48+ else
49+ echo " PR from external source no changes to properties."
4850 fi
4951else
5052 echo " No need to update sonar we building on release or develop"
You can’t perform that action at this time.
0 commit comments