SonarCloud v3 tasks and Backslash regression

In version 2.x I can do:

- task: SonarCloudPrepare@2
  inputs:
      extraProperties: |
        sonar.scanner.metadataFilePath=$(Agent.BuildDirectory)/.sonarqube/out/.sonar/report-task.txt

And in the logs it appears as (which is correct):

sonar.scanner.metadataFilePath=D:\\agent_01\\_work\\1/.sonarqube/out/.sonar/report-task.txt

But without touching the pipeline other than to change @2 to @3 it fails because it does not interpret the back slashes correctly and removes them:

sonar.scanner.metadataFilePath=D:agent_01_work1/.sonarqube/out/.sonar/report-task.txt
1 Like

Hello @bdovaz ,

Welcome to the community and thank you for your report!

There was a new release a few moments ago, can you please ensure you are using the latest version of the extension (and tasks) 3.0.2 and verify whether this issue still occurs?

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.