Skip to content

Commit

Permalink
build: configure branch for sonar (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubisation authored Jul 16, 2019
1 parent 103923f commit 916e83f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/sonar.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ if (process.env.SONAR_TOKEN) {
sonarqubeScanner(
{
serverUrl: 'https://sonarcloud.io',
token: process.env.SONAR_TOKEN
token: process.env.SONAR_TOKEN,
options: {
'sonar.branch': process.env.TRAVIS_PULL_REQUEST_BRANCH || process.env.TRAVIS_BRANCH
}
},
resolve
)
Expand Down

0 comments on commit 916e83f

Please sign in to comment.