This task was configured to use Java 11, but the SonarQube server v10.4.1 does not support it. Ignoring the configuration and using JAVA_HOME instead. Specify jdkversion in your task definition to use Java 17 to remove this warning.
I installed version 5.19.2 of the SonarQube DevOps extensions but I still see version 5.19.1 being installed
Could you provide your pipeline and your analysis log?
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.
But the package contains the 5.19.1 SonarQubePrepare and SonarQubeAnalyze tasks so effectively this fix hasn’t been released.
Starting: Prepare analysis on SonarQube
==============================================================================
Task : Prepare Analysis Configuration
Description : Prepare SonarQube analysis configuration
Version : 5.19.1
Author : sonarsource
Help : Version: 5.19.1. [More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
==============================================================================
Starting: Run Code Analysis
==============================================================================
Task : Run Code Analysis
Description : Run scanner and upload the results to the SonarQube server.
Version : 5.19.1
Author : sonarsource
Help : Version: 5.19.1. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.
[More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
==============================================================================
##[warning]This task was configured to use Java 11, but the SonarQube server v10.4.1 does not support it. Ignoring the configuration and using JAVA_HOME instead. Specify jdkversion in your task definition to use Java 17 to remove this warning.
This task was configured to use Java 11, but the SonarQube server v10.4.1 does not support it. Ignoring the configuration and using JAVA_HOME instead. Specify jdkversion in your task definition to use Java 17 to remove this warning.
To fix this warning, you can modify your pipeline configuration to specify jdkversion at the run analysis step:
Thanks for the answer, i’ll ignore the warning for now.
My build agents are running java_21_x64 which is not a supported option, guess i’ll wait for the 6 version of the tasks.
I have created an internal ticket to let users select Java 21 in their pipeline, we will release it in the upcoming days in the current version of the tasks, so you will be able to use it without waiting for the next major version.