diff --git a/src/ru/pulsar/jenkins/library/steps/SonarScanner.groovy b/src/ru/pulsar/jenkins/library/steps/SonarScanner.groovy index c292729..481f5ed 100644 --- a/src/ru/pulsar/jenkins/library/steps/SonarScanner.groovy +++ b/src/ru/pulsar/jenkins/library/steps/SonarScanner.groovy @@ -39,7 +39,7 @@ class SonarScanner implements Serializable { String sonarCommand = "$sonarScannerBinary" if (config.sonarQubeOptions.useBranchPlugin) { - if ($env.CHANGE_ID){ + if (env.CHANGE_ID){ sonarCommand += " -Dsonar.pullrequest.key=$env.CHANGE_ID" sonarCommand += " -Dsonar.pullrequest.branch=$env.CHANGE_BRANCH" sonarCommand += " -Dsonar.pullrequest.base=$env.CHANGE_TARGET"