I get an error when I execute “Run Code Analysis” in an Azure DevOps pipeline
“##[error]Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8”
This output causes the element to “fail” in the pipeline, even if execution is successful.
SonarQube plugin for Azure DevOps (formerly VSTS), version 4.6.0
The agent is operating in a Kubernetes environment based on Ubuntu.
JAVA_TOOL_OPTIONS is not set by our pipeline implementation, it’s coming from Microsoft.
Sonar runner’s execution causes a “Picked up …” message to STDERR (feature of Java runtime!)
I have a “Run Code Analysis” block in the pipeline
I see no potential workaround: right now. I see no option to remove JAVA_TOOL_OPTIONS from the pipeline’s environment.
Is it possible to provide a plugin update where this error output is redirected so that the DevOps agent does not classify the output as error?
Any other solution?