Skip to content

Commit

Permalink
update sonarcloud tasks in azure pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
coenm committed Nov 25, 2024
1 parent ff4f7a5 commit 572a736
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
steps:

- task: SonarCloudPrepare@2
- task: SonarCloudPrepare@3
displayName: Prepare analysis on SonarCloud
inputs:
SonarCloud: SonarCloudGithub
Expand Down
4 changes: 2 additions & 2 deletions .azuredevops/Pipelines/Templates/publish-code-analysis.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
steps:

- task: SonarCloudAnalyze@2
- task: SonarCloudAnalyze@3
displayName: ⚙️ Run Code Analysis
condition: and(succeeded(), or( ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.PullRequest.IsFork'], 'false') ))

- task: SonarCloudPublish@2
- task: SonarCloudPublish@3
displayName: 📢 Publish Quality Gate Result
condition: and(succeeded(), or( ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.PullRequest.IsFork'], 'false') ))

Expand Down

0 comments on commit 572a736

Please sign in to comment.