I’ve been using a task like this to prepare SQ for analysing a Python project in an Azure DevOps build pipeline:
- task: SonarQubePrepare@4 inputs: SonarQube: 'My-SonarQube' scannerMode: 'CLI' configMode: 'file'
This all worked fine until I had to add a second
checkout step to my build pipeline. This had the affect of pushing both checked-out repos into separate subfolders under (Agent.BuildDirectory)\s (see docs). So whereas before I had D:\a\1\s\sonar-project.properties in builds on Windows; now it’s at D:\a\1\s<repo-name>\sonar-project.properties.
So now the subsequent SonarQubeAnalyze@4 task fails because it can’t find the properties file:
INFO: Project root configuration file: NONE
How can I tell the SonarQubePrepare task where to find sonar-project.properties now please?