Hi
Im using sonarqube plugin in Jenkins, and my pipeline is as follows:
withSonarQubeEnv(pluginId) {
…
}
It works fine
The problem i have now is that i want to authenticate to do the scan, so i was thinking on doing something like this:
withCredentials([usernamePassword(credentialsId: MyAccount, passwordVariable: ‘password’, usernameVariable: ‘user’)]) {
withSonarQubeEnv(pluginId) {
…
}
}
But i cant see any way of sending the account details to sonarqube plugin
Apart from configuring the plugin in jenkins with user and password, which i prefer not to do, is there any way to send as parameter the user and password i want to use?
Thanks