in jenkins-pipeline-shared-libraries/vars/maven.groovy [46:56]
def runMavenWithSettingsSonar(String settingsXmlId, String goals, String sonarCloudId, String logFileName = null) {
configFileProvider([configFile(fileId: settingsXmlId, variable: 'MAVEN_SETTINGS_XML')]) {
withCredentials([string(credentialsId: sonarCloudId, variable: 'TOKEN')]) {
new MavenCommand(this)
.withSettingsXmlFile(MAVEN_SETTINGS_XML)
.withProperty('sonar.login', "${TOKEN}")
.withLogFileName(logFileName)
.run(goals)
}
}
}