Skip to content

Commit c23f40f

Browse files
committed
Work CI-CD
- Update sonarcloud tasks to v2. - Fix conditions to publish artifacts on PR build. - Config github taks to generate change log from PRs on publish. ***NO_CI***
1 parent bbca264 commit c23f40f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

azure-pipelines.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ steps:
124124
condition: eq( variables['StartReleaseCandidate'], true )
125125
displayName: NBGV prepare release
126126

127-
- task: SonarCloudPrepare@1
127+
- task: SonarCloudPrepare@2
128128
condition: >-
129129
and(
130130
ne(variables['StartReleaseCandidate'], true),
@@ -168,7 +168,7 @@ steps:
168168
# platform: '$(buildPlatform)'
169169
# configuration: '$(buildConfiguration)'
170170

171-
- task: SonarCloudAnalyze@1
171+
- task: SonarCloudAnalyze@2
172172
condition: >-
173173
and(
174174
succeeded(),
@@ -177,7 +177,7 @@ steps:
177177
)
178178
displayName: 'Run Code Analysis'
179179

180-
- task: SonarCloudPublish@1
180+
- task: SonarCloudPublish@2
181181
condition: >-
182182
and(
183183
succeeded(),
@@ -209,7 +209,6 @@ steps:
209209
and(
210210
succeeded(),
211211
eq(variables['StartReleaseCandidate'], false),
212-
eq(variables['System.PullRequest.PullRequestId'], ''),
213212
eq(variables['UPDATE_DEPENDENTS'], 'false')
214213
)
215214
inputs:
@@ -236,7 +235,6 @@ steps:
236235
and(
237236
succeeded(),
238237
eq(variables['StartReleaseCandidate'], false),
239-
eq(variables['System.PullRequest.PullRequestId'], ''),
240238
eq(variables['UPDATE_DEPENDENTS'], 'false')
241239
)
242240
@@ -310,6 +308,7 @@ steps:
310308
action: create
311309
isDraft: false
312310
addChangeLog: true
311+
changeLogType: issueBased
313312
changeLogLabels: |
314313
[
315314
{ "label" : "Type: bug", "displayName" : "Bugs fixed", "state" : "closed" },

0 commit comments

Comments
 (0)