Getting error for sonarcloud task in ADO with java 17

ok. looks like its working if we add the variable in the pipeline level instead of task level. but I need to check the analysis report generated by both Java versions.