Skip to content

Commit 25d8423

Browse files
committed
Work CI-CD
- Add new repos to update dependents. - Move second update step to first one. - Fix expression. - Improve conditions. - Add back trigger from tags. ***NO_CI***
1 parent 2f7ccbd commit 25d8423

File tree

1 file changed

+18
-28
lines changed

1 file changed

+18
-28
lines changed

azure-pipelines.yml

Lines changed: 18 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ trigger:
2020
- assets/*
2121
- nanoFramework.TestFramework/*
2222

23+
tags:
24+
include:
25+
- v*
26+
2327
# PR always trigger build
2428
pr:
2529
autoCancel: true
@@ -37,10 +41,14 @@ jobs:
3741
##############################
3842
- job: Build_mscorlib
3943
condition: >-
40-
or(
41-
eq(variables['UPDATE_DEPENDENTS'], 'false'),
42-
eq(variables['StartReleaseCandidate'], 'true')
44+
and(
45+
not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v')),
46+
or(
47+
eq(variables['UPDATE_DEPENDENTS'], 'false'),
48+
eq(variables['StartReleaseCandidate'], 'true')
49+
)
4350
)
51+
4452
pool:
4553
vmImage: 'windows-latest'
4654

@@ -139,22 +147,16 @@ jobs:
139147
condition: >-
140148
or(
141149
and(
142-
not(or(failed(), canceled())),
143-
startsWith(variables['Build.SourceBranch'], 'refs/heads/main'),
150+
startsWith(variables['Build.SourceBranch'], 'refs/tags/v'),
144151
eq(variables['StartReleaseCandidate'], 'false')
145152
),
146153
and(
147-
not(or(failed(), canceled())),
148-
eq(variables['System.PullRequest.PullRequestId'], ''),
149-
contains(variables['Build.SourceVersionMessage'], '***UPDATE_DEPENDENTS***'),
154+
contains(variables['getCommitMessage.COMMIT_MESSAGE'], '***UPDATE_DEPENDENTS***'),
150155
eq(variables['StartReleaseCandidate'], 'false')
151156
),
152157
eq(variables['UPDATE_DEPENDENTS'], 'true')
153158
)
154159
155-
dependsOn:
156-
- Build_mscorlib
157-
158160
pool:
159161
vmImage: 'windows-latest'
160162

@@ -170,21 +172,21 @@ jobs:
170172
# update dependents
171173
- template: azure-pipelines-templates/update-dependents.yml@templates
172174
parameters:
173-
${{ if eq(variables['UPDATE_DEPENDENTS'], 'false') }}:
174-
waitBeforeUpdate: false
175-
${{ else }}:
176-
waitBeforeUpdate: true
175+
waitBeforeUpdate: false
177176
repositoriesToUpdate: |
178177
nanoFramework.TestFramework
179178
nanoFramework.Device.OneWire
180179
nanoFramework.Runtime.Events
181180
nanoFramework.Runtime.Native
181+
nanoFramework.Hardware.GiantGecko
182182
nanoFramework.Hardware.Stm32
183183
nanoFramework.Hardware.TI
184184
nanoFramework.Networking.Sntp
185185
nanoFramework.TI.EasyLink
186186
nanoFramework.ResourceManager
187187
nanoframework.System.Runtime
188+
nanoFramework.DependencyInjection
189+
System.Collections
188190
System.Device.Adc
189191
System.Device.Dac
190192
System.Device.I2c
@@ -194,20 +196,8 @@ jobs:
194196
System.IO.Hashing
195197
System.Math
196198
System.Text
197-
System.Security.Cryptography
198-
199-
# update dependents
200-
- template: azure-pipelines-templates/update-dependents.yml@templates
201-
parameters:
202-
${{ if eq(variables['UPDATE_DEPENDENTS'], 'true') }}:
203-
waitBeforeUpdate: false
204-
${{ else }}:
205-
waitBeforeUpdate: true
206-
repositoriesToUpdate: |
207-
nanoFramework.Logging
208-
nanoFramework.Json
209-
System.Collections
210199
System.Threading
200+
System.Security.Cryptography
211201
212202
##################################
213203
# report build failure to Discord

0 commit comments

Comments
 (0)