|
| steps:
| # Prepare Analysis Configuration task
-| - task: SonarQubePrepare@4
+| - task: SonarQubePrepare@5
| inputs:
| SonarQube: 'YourSonarqubeServerEndpoint'
| scannerMode: 'MSBuild'
| projectKey: 'YourProjectKey'
|
| # Run Code Analysis task
-| - task: SonarQubeAnalyze@4
+| - task: SonarQubeAnalyze@5
|
| # Publish Quality Gate Result task
-| - task: SonarQubePublish@4
+| - task: SonarQubePublish@5
| inputs:
| pollingTimeoutSec: '300'
| ```
|
| steps:
| # Prepare Analysis Configuration task
-| - task: SonarQubePrepare@4
+| - task: SonarQubePrepare@5
| inputs:
| SonarQube: 'YourSonarqubeServerEndpoint'
| scannerMode: 'Other'
| extraProperties: 'sonar.projectKey=YourProjectKey'
|
| # Publish Quality Gate Result task
-| - task: SonarQubePublish@4
+| - task: SonarQubePublish@5
| inputs:
| pollingTimeoutSec: '300'
| ```
|
| steps:
| # Prepare Analysis Configuration task
-| - task: SonarQubePrepare@4
+| - task: SonarQubePrepare@5
| inputs:
| SonarQube: 'YourSonarqubeServerEndpoint'
| scannerMode: 'CLI'
| cliProjectKey: 'YourProjectKey'
|
| # Run Code Analysis task
-| - task: SonarQubeAnalyze@4
+| - task: SonarQubeAnalyze@5
|
| # Publish Quality Gate Result task
-| - task: SonarQubePublish@4
+| - task: SonarQubePublish@5
| inputs:
| pollingTimeoutSec: '300'
| ```
| unzip build-wrapper.zip
|
| # Prepare Analysis Configuration task
-| - task: SonarQubePrepare@4
+| - task: SonarQubePrepare@5
| inputs:
| SonarQube: 'YourSonarqubeServerEndpoint'
| scannerMode: 'CLI'
| ./build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw_output <Your build command>
|
| # Run Code Analysis task
-| - task: SonarQubeAnalyze@4
+| - task: SonarQubeAnalyze@5
|
| # Publish Quality Gate Result task
-| - task: SonarQubePublish@4
+| - task: SonarQubePublish@5
| inputs:
| pollingTimeoutSec: '300'
| ```