From 572a736c9205c5d459b735a158ebbbaa6d47982c Mon Sep 17 00:00:00 2001 From: Coen van den Munckhof Date: Mon, 25 Nov 2024 22:50:30 +0100 Subject: [PATCH] update sonarcloud tasks in azure pipelines --- .azuredevops/Pipelines/Templates/prepare-code-analysis.yaml | 2 +- .azuredevops/Pipelines/Templates/publish-code-analysis.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.azuredevops/Pipelines/Templates/prepare-code-analysis.yaml b/.azuredevops/Pipelines/Templates/prepare-code-analysis.yaml index 96cd25f3..fa3a8806 100644 --- a/.azuredevops/Pipelines/Templates/prepare-code-analysis.yaml +++ b/.azuredevops/Pipelines/Templates/prepare-code-analysis.yaml @@ -1,6 +1,6 @@ steps: -- task: SonarCloudPrepare@2 +- task: SonarCloudPrepare@3 displayName: Prepare analysis on SonarCloud inputs: SonarCloud: SonarCloudGithub diff --git a/.azuredevops/Pipelines/Templates/publish-code-analysis.yaml b/.azuredevops/Pipelines/Templates/publish-code-analysis.yaml index 2214df77..cca40645 100644 --- a/.azuredevops/Pipelines/Templates/publish-code-analysis.yaml +++ b/.azuredevops/Pipelines/Templates/publish-code-analysis.yaml @@ -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') ))