@@ -36,98 +36,44 @@ resources:
3636 name : nanoframework/nf-tools
3737 endpoint : nanoframework
3838
39- jobs :
40-
41- # #############################
42- - job : Build_Library
43- condition : >-
44- or(
45- eq(variables['UPDATE_DEPENDENTS'], 'false'),
46- eq(variables['StartReleaseCandidate'], 'true')
47- )
48- pool :
49- vmImage : ' windows-latest'
50-
51- variables :
52- DOTNET_NOLOGO : true
53- solution : ' nanoFramework.System.Device.Gpio.sln'
54- buildPlatform : ' Any CPU'
55- buildConfiguration : ' Release'
56- nugetPackageName : ' nanoFramework.System.Device.Gpio'
57-
58- steps :
59-
60- # step from template @ nf-tools repo
61- # all build, update and publish steps
62- - template : azure-pipelines-templates/class-lib-build.yml@templates
63- parameters :
64- sonarCloudProject : ' nanoframework_lib-System.Device.Gpio'
65-
66- # #############################
67- - job : Update_Dependents
68- condition : >-
69- or(
70- and(
71- succeeded(),
72- startsWith(variables['Build.SourceBranch'], 'refs/tags/v'),
73- eq(variables['StartReleaseCandidate'], 'false')
74- ),
75- and(
76- succeeded(),
77- contains(variables['getCommitMessage.COMMIT_MESSAGE'], '***UPDATE_DEPENDENTS***'),
78- eq(variables['StartReleaseCandidate'], 'false')
79- ),
80- eq(variables['UPDATE_DEPENDENTS'], 'true')
81- )
82-
83- dependsOn :
84- - Build_Library
85-
86- pool :
87- vmImage : ' windows-latest'
88-
89- variables :
90- DOTNET_NOLOGO : true
91-
92-
93- steps :
94-
95- - checkout : none
96-
97- # update dependents
98- - template : azure-pipelines-templates/update-dependents.yml@templates
99- parameters :
100- ${{ if eq(variables['UPDATE_DEPENDENTS'], 'true') }} :
101- waitBeforeUpdate : false
102- ${{ else }} :
103- waitBeforeUpdate : true
104- repositoriesToUpdate : |
105- System.Device.Spi
106-
107- # #################################
108- # report build failure to Discord
109- - job : Report_Build_Failure
110-
111- dependsOn :
112- - Build_Library
113- - Update_Dependents
114- condition : >-
115- or(
116- failed('Build_Library'),
117- failed('Update_Dependents')
118- )
119-
120- pool :
121- vmImage : ' windows-latest'
122-
123- steps :
124-
125- - checkout : self
126-
127- # step from template @ nf-tools repo
128- # report error
129- - template : azure-pipelines-templates/discord-webhook-task.yml@templates
130- parameters :
131- status : ' failure'
132- webhookUrl : ' $(DiscordWebhook)'
133- message : ' '
39+ pool :
40+ vmImage : ' windows-latest'
41+
42+ variables :
43+ - group : sign-client-credentials
44+ - name : DOTNET_NOLOGO
45+ value : true
46+ - name : buildPlatform
47+ value : ' Any CPU'
48+ - name : buildConfiguration
49+ value : ' Release'
50+ - name : solution
51+ value : ' nanoFramework.System.Device.Gpio.sln'
52+ - name : nugetPackageName
53+ value : ' nanoFramework.System.Device.Gpio'
54+
55+ steps :
56+
57+ # step from template @ nf-tools repo
58+ # all build, update and publish steps
59+ - template : azure-pipelines-templates/class-lib-build.yml@templates
60+ parameters :
61+ sonarCloudProject : ' nanoframework_lib-System.Device.Gpio'
62+
63+ # update dependents
64+ - template : azure-pipelines-templates/update-dependents.yml@templates
65+ parameters :
66+ ${{ if eq(variables['UPDATE_DEPENDENTS'], 'false') }} :
67+ waitBeforeUpdate : false
68+ ${{ else }} :
69+ waitBeforeUpdate : true
70+ repositoriesToUpdate : |
71+ System.Device.Spi
72+
73+ # step from template @ nf-tools repo
74+ # report error
75+ - template : azure-pipelines-templates/discord-webhook-task.yml@templates
76+ parameters :
77+ status : ' failure'
78+ webhookUrl : ' $(DiscordWebhook)'
79+ message : ' '
0 commit comments