This is fairly similar to https://jira.sonarsource.com/browse/SONARJNKNS-305: I tried raising an issue on that Jira, but don’t seem to have permissions.
We use withSonarQubeEnv to obtain credentials that are then used in calls to the Sonar Web API: this is unconnected to any use of the scanner. Unfortunately, doing this results in a warning in the Jenkins logs:
WARN: Unable to locate ‘report-task.txt’ in the workspace. Did the SonarScanner succedeed?
This is just noise (not to mention the typo! Presumably it should say “Did the SonarScanner succeed?”) and can be confusing for users. Is there a way to suppress this in pipelines where no report file is expected or desired?