File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232
3333# Are we running on utPLSQL repo and not an external PR?
3434echo " Check if we running from develop or on branch"
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
35+ if [ " ${TRAVIS_REPO_SLUG} " = " ${UTPLSQL_REPO} " ] && [[ ! " ${BRANCH} " =~ ^(release/v[0-9]+\. [0-9]+\. [0-9]+.* | " ${MAIN_DEV_BRANCH} " )$ ]]; then
3736
3837 echo " " >> sonar-project.properties
3938 if [ " $TRAVIS_PULL_REQUEST " == " false" ]; then
4039 echo " Updating sonar properties to include branch ${BRANCH} "
4140 add_sonar_property " ${BRANCH_SONAR_PROPERTY} " " ${BRANCH} "
4241 add_sonar_property " ${BRANCH_SONAR_TARGET_PROPERTY} " " ${MAIN_DEV_BRANCH} "
43- else
42+ elif [ " ${TRAVIS_PULL_REQUEST_SLUG} " = " ${TRAVIS_REPO_SLUG} " ]
4443 echo " Updating sonar properties to include pull request ${BRANCH} "
4544 add_sonar_property " ${PR_SONAR_TOKEN_PROPERTY} " " ${GITHUB_TRAVISCI_TOKEN} "
4645 add_sonar_property " ${PR_SONAR_BRANCH_PROPERTY} " " ${BRANCH} "
4746 add_sonar_property " ${PR_KEY_PROPERTY} " " ${PR} "
4847 add_sonar_property " ${PR_SONAR_BASE_PROPERTY} " " ${PR_BRANCH} "
48+ else
49+ echo " PR from external source no changes to properties."
4950 fi
5051else
5152 echo " No need to update sonar we building on release or develop"
You can’t perform that action at this time.
0 commit comments