We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1808ba0 commit 440507bCopy full SHA for 440507b
CI.Jenkinsfile
@@ -10,7 +10,7 @@ node ("docker-light") {
10
stage("Maven Build") {
11
withSonarQubeEnv {
12
mySonarOpts="-Dsonar.login=${env.SONAR_AUTH_TOKEN} -Dsonar.host.url=${env.SONAR_HOST_URL}"
13
- if ("${env.CHANGE_BRANCH}") {
+ if ("${env.CHANGE_BRANCH}" == "null") {
14
mySonarOpts="$mySonarOpts -Dsonar.pullrequest.key=${env.CHANGE_ID} -Dsonar.pullrequest.base=${env.CHANGE_TARGET} -Dsonar.pullrequest.branch=${env.CHANGE_BRANCH}"
15
}
16
echo("Sonar Options are: $mySonarOpts")
0 commit comments