Skip to content

Commit 8417669

Browse files
authored
Fix auto-baseline condition (#2542)
Attempt to fix the auto-baselining condition for the main pipeline. Sometimes the branch name contains "refs/heads/" and sometimes doesn't I'm not sure what causes this but I'm just eliminating that from the equation.
1 parent d01c5dc commit 8417669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/pipelines/templates/stages/archetype-sdk-client.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ parameters:
7272
extends:
7373
template: /eng/pipelines/templates/stages/1es-redirect.yml
7474
parameters:
75-
autoBaseline: ${{ and(eq(variables['Build.DefinitionName'], 'rust - core'), eq(variables['Build.SourceBranchName'], 'main'), eq(variables['System.TeamProject'], 'internal')) }}
75+
autoBaseline: ${{ and(eq(variables['Build.DefinitionName'], 'rust - core'), eq(replace(variables['Build.SourceBranchName'], 'refs/heads/', ''), 'main'), eq(variables['System.TeamProject'], 'internal')) }}
7676
stages:
7777
- stage: Build
7878
variables:

0 commit comments

Comments
 (0)