File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1+ dist : trusty
2+ sudo : required
3+
14language : java
25
36jdk :
Original file line number Diff line number Diff line change @@ -6,19 +6,18 @@ mvn -B clean install -Pits -Dsonar.runtimeVersion=$SQ_VERSION
66
77if [ " $SQ_VERSION " == " LTS" ]; then
88
9- mvnCommand = " mvn -B sonar:sonar"
10- commonArgs = " -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dsonar.organization=racodond-github"
11- githubAgs = " -Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST -Dsonar.github.repository=$TRAVIS_REPO_SLUG -Dsonar.github.oauth=$GITHUB_TOKEN "
12- branchArgs = ' '
9+ mvnCommand= ' mvn -B sonar:sonar'
10+ commonArgs= " -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN -Dsonar.organization=racodond-github"
11+ githubArgs= " -Dsonar.analysis.mode=preview -Dsonar.github.pullRequest=$TRAVIS_PULL_REQUEST -Dsonar.github.repository=$TRAVIS_REPO_SLUG -Dsonar.github.oauth=$GITHUB_TOKEN "
12+ branchArgs= ' '
1313
1414 if [ " $TRAVIS_PULL_REQUEST " == " false" ]; then
1515 if [ " $TRAVIS_BRANCH " != " master" ]; then
16- branchArgs = " -Dsonar.branch.name=$TRAVIS_BRANCH -Dsonar.branch.target=master"
16+ branchArgs= " -Dsonar.branch.name=$TRAVIS_BRANCH -Dsonar.branch.target=master"
1717 fi
18- $mvnCommand $commonArgs $branchArgs
18+ eval $mvnCommand $commonArgs $branchArgs
1919 else
20- $mvnCommand $commonArgs $githubArgs
21-
20+ eval $mvnCommand $commonArgs $githubArgs
2221 fi
2322
2423fi
You can’t perform that action at this time.
0 commit comments