Update azure-pipelines.yml for Azure Pipelines
9a3b292c
Mickaël Caro
committed
succeeded
1 changed file
azure-pipelines.yml
/azure-pipelines.yml-11+6
/azure-pipelines.yml
Add comment 15 pool:
Add comment 16 vmImage: 'ubuntu-latest'
Add comment 17
Add comment 18 Minus  variables:
Add comment 19 Minus   sonarCloudEndpointName: 'SonarCloud'
Add comment 20 Minus   sonarCloudOrganization: 'sonarsource'
Add comment 21 Minus   sonarCloudProjectKey: 'maven-on-azdo'
Add comment 22 Minus   sonarCloudProjectName: 'Sample Maven project with Azure DevOps'
Add comment 23 Minus  
Add comment 24 18 steps:
Add comment 25 19 - task: SonarCloudPrepare@1
Add comment 26 20 inputs:
Add comment 27 Minus   SonarCloud: '$(sonarCloudEndpointName)'
Add comment 28 Minus   organization: '$(sonarCloudOrganization)'
Add comment 29 Minus   projectKey: '$(sonarCloudProjectKey)'
Add comment 30 Minus   projectName: '$(sonarCloudProjectName)'
Add comment 21 Plus   SonarCloud: 'SonarCloud'
Add comment 22 Plus   organization: 'sonarsource'
Add comment 31 23 scannerMode: Other
Add comment 32 24 # Additional properties that will be passed to the scanner,
Add comment 33 25 # Put one key=value per line, example:
Add comment 34 26 # sonar.exclusions=**/*.bin
Add comment 35 Minus   extraProperties:
Add comment 27 Plus   extraProperties: |
Add comment 28 Plus   sonar.projectKey=maven-on-azdo
Add comment 29 Plus   sonar.projectName=Sample Maven project with Azure DevOps
Add comment 30 Plus   sonar.coverage.jacoco.xmlReportPaths=**/summary.xml
Add comment 36 31 # Initial behavior of Maven task is that the SonarScanner uses information contained in Maven
Add comment 37 32 # object model to provide smart defaults for most of the standard analysis parameters.
Add comment 38 33 # You can however override this by setting wanted properties in this extraProperties space.