You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the withSonarQubeEnv wrapper, specifying the installation name, which is needed for a separate step I have which uses the ${SONAR_AUTH_TOKEN} and ${SONAR_HOST_URL} environment variables to make an API request to query the quality gate status. Removing the wrapper and the step which depends on it has no effect on the sonar-gerrit config.
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered:
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Controller: CentOS Linux release 7.9.2009 (Core)
Agents: Windows Server 2016
Reproduction steps
Supply job dsl for gerrit job, intending pullRequest mode to be used with default settings:
($sonarScanArguments below =
/d:sonar.pullrequest.key=${GERRIT_CHANGE_NUMBER}-${GERRIT_PATCHSET_NUMBER}
/d:sonar.pullrequest.base=${GERRIT_BRANCH}
/d:sonar.pullrequest.branch=${GERRIT_REFSPEC}
)
...
wrappers {
withSonarQubeEnv {
installationName('GTS Sonar')
}
timestamps()
preBuildCleanup()
}
...
steps {
msBuildSQRunnerBegin {
additionalArguments("/d:sonar.projectBaseDir=${WORKSPACE} ${sonarScanArguments}")
projectKey(jenkinsProject.sonarProjectKey)
projectName('AWSInterface')
projectVersion('${JOB_NAME}')
}
}
...
publishers {
if (jenkinsProject.gerritJob){
sonarToGerrit {
inspectionConfig {
analysisStrategy {
pullRequest()
}
}
}
}
}
Expected Results
Job to include sonar-gerrit as a publisher, using pullRequest mode.
Actual Results
config.xml shows analysisStrategy is preview mode:
Anything else?
I am using the withSonarQubeEnv wrapper, specifying the installation name, which is needed for a separate step I have which uses the ${SONAR_AUTH_TOKEN} and ${SONAR_HOST_URL} environment variables to make an API request to query the quality gate status. Removing the wrapper and the step which depends on it has no effect on the sonar-gerrit config.
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered: