Skip to content

Commit 8abbbd3

Browse files
[build] use MicroBuild.1ES.Official based on pipeline name (#1354)
Context: dotnet/android#10736 The `AndroidX` production pipeline *must* always use the `MicroBuild.1ES.Official` template. It would fail/warn otherwise if running on pull requests. Update the yaml condition to behave this way, which will allow us to test changes on pull requests.
1 parent af6bc50 commit 8abbbd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ resources:
3333
ref: refs/heads/main
3434

3535
extends:
36-
${{ if and(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), not(eq(variables['Build.Reason'], 'PullRequest'))) }}:
36+
${{ if eq(variables['Build.DefinitionName'], 'AndroidX') }}:
3737
template: azure-pipelines/MicroBuild.1ES.Official.yml@1esPipelines
3838
${{ else }}:
3939
template: azure-pipelines/MicroBuild.1ES.Unofficial.yml@1esPipelines

0 commit comments

Comments
 (0)