There’s a fix available since Oct 2022 (VSTS extension 5.8.1). However, it is not clear whether our self-hosted build agents have gotten this version yet. This extension is preinstalled on them, but the version is unclear. All we know is that we call a SonarQubePublish@5 step in the pipeline.
How do I find what version of the extension I got on the hosted AzDO agent that is running the pipeline?
5.0.2 is the last version of the publish task currently. There are multiple versionning in place for the extension. The extension itself has its own version (currently 5.10.0), and each of the tasks (Prepare, Analyze, Publish) have their own versions too.
I would do it the other way around. Start from the extension version (5.8.1) and check if it has the wished publish task version on it for instance.
We don’t publish that information in a clear manner TBH, but our repo is public, you can check the tag that corresponds to the extension version, and dig a bit in the repo tree.