Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control ADO-Maestro job using variable #1083

Merged
merged 3 commits into from
Jan 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions build/AzurePipelineTemplates/CsWinRT-Pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ stages:

- template: CsWinRT-PublishToNuget-Stage.yml

- template: CsWinRT-PublishToMaestro-Stage.yml
parameters:
${{ if eq(variables['PrereleaseVersion'], '') }}:
IsRelease: true
- template: CsWinRT-PublishToMaestro-Stage.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
parameters:
IsRelease: ''

stages:
- stage: PublishToMaestro
displayName: Trigger Maestro Publish
jobs:
- job: TriggerMaestroPublish
condition: eq('${{ parameters.IsRelease }}','true')
condition: eq(variables['_IsRelease'],'true')
variables:
_DotNetCoreRuntimeVersion: 5.0.11 # matches with SDK v. 5.0.402
_WindowsSdkPackageVersion: 10.0.18362.22 # matches with one consumed in WindowsAppSdk
Expand Down
4 changes: 4 additions & 0 deletions build/AzurePipelineTemplates/CsWinRT-Variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ variables:
Net6.SDK.Version: '6.0.100-rc.2.21505.57'
NoSamples: 'false'

# This 'coalesce' pattern allows the yml to define a default value for a variable but allows the value to be overridden at queue time.
# E.g. '_IsRelease' defaults to empty string, but if 'IsRelease' is set at queue time that value will be used.

_IsRelease: $[coalesce(variables.IsRelease, '')]