File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6464 - $MAVEN_CFG
6565
6666before_install :
67- # debug
68- - if [[ ! $TRAVIS_TAG ]] && [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ]; then bash .travis/run_sonar_scanner.sh; fi
6967 # The update_project_version.sh is done before deployment to validate that the change of project files does not break installation
7068 - bash .travis/update_project_version.sh
7169 # download latest utPLSQL release
Original file line number Diff line number Diff line change 3232echo " Check if we running from develop or on branch"
3333if [ " ${TRAVIS_REPO_SLUG} " = " ${UTPLSQL_REPO} " ] && [[ ! " ${BRANCH} " =~ ^(release/v[0-9]+\. [0-9]+\. [0-9]+.* | " ${MAIN_DEV_BRANCH} " )$ ]]; then
3434
35+ echo " " >> sonar-project.properties
3536 if [ " $TRAVIS_PULL_REQUEST " == " false" ]; then
36- echo " Updating sonar properties to include branch name "
37+ echo " Updating sonar properties to include branch ${BRANCH} "
3738 add_sonar_property " ${BRANCH_SONAR_PROPERTY} " " ${BRANCH} "
3839 add_sonar_property " ${BRANCH_SONAR_TARGET_PROPERTY} " " ${MAIN_DEV_BRANCH} "
3940 else
40- echo " Updating sonar properties to include pull request name "
41+ echo " Updating sonar properties to include pull request ${BRANCH} "
4142 add_sonar_property " ${PR_SONAR_TOKEN_PROPERTY} " " ${GITHUB_TRAVISCI_TOKEN} "
4243 add_sonar_property " ${PR_SONAR_BRANCH_PROPERTY} " " ${BRANCH} "
4344 add_sonar_property " ${PR_KEY_PROPERTY} " " ${PR} "
4748 echo " No need to update sonar we building on release or develop"
4849fi
4950
50- # debug
51- cat sonar-project.properties
52-
5351# Execute Sonar scanner
54- # sonar-scanner
52+ sonar-scanner
Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ sonar.pullrequest.github.endpoint=https://api.github.com/
2424sonar.pullrequest.github.repository =utPLSQL/utPLSQL
2525
2626# Encoding of the source code. Default is default system encoding
27- # sonar.sourceEncoding=UTF-8
27+ # sonar.sourceEncoding=UTF-8
You can’t perform that action at this time.
0 commit comments