Skip to content

Commit a8c8dd6

Browse files
authored
Enable SDL auto baseline for public PR in GitHub (#10332)
* Enable SDL auto baseline for public PR in GitHub * Add buildNumber to public * Add buildNumber to integration-tests.yml * Fix missing job variables * Fix spelling mistake * public-build.yml formatting
1 parent 9f38f7f commit a8c8dd6

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

eng/ci/integration-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ resources:
1919
ref: refs/tags/release
2020

2121
variables:
22-
- template: /eng/ci/templates/variables/build.yml@self
23-
- template: /ci/variables/cfs.yml@eng
22+
- template: /eng/ci/templates/variables/build.yml@self
23+
- template: /ci/variables/cfs.yml@eng
24+
- name: buildNumber
25+
value: $[ counter('build', 0) ]
2426

2527
extends:
2628
template: v1/1ES.Unofficial.PipelineTemplate.yml@1es

eng/ci/official-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ resources:
3232
ref: refs/tags/release
3333

3434
variables:
35-
- template: /eng/ci/templates/variables/build.yml@self
36-
- template: /ci/variables/cfs.yml@eng
37-
- name: buildNumber
38-
value: $[ counter('build', 23000) ] # 23000 selected to be ahead of current host build
35+
- template: /eng/ci/templates/variables/build.yml@self
36+
- template: /ci/variables/cfs.yml@eng
37+
- name: buildNumber
38+
value: $[ counter('build', 23000) ] # 23000 selected to be ahead of current host build
3939

4040
extends:
4141
template: v1/1ES.Official.PipelineTemplate.yml@1es

eng/ci/public-build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ schedules:
1717
- dev
1818
- in-proc
1919
always: true
20+
2021
pr:
2122
branches:
2223
include:
@@ -32,7 +33,9 @@ resources:
3233
ref: refs/tags/release
3334

3435
variables:
35-
- template: /eng/ci/templates/variables/build.yml@self
36+
- template: /eng/ci/templates/variables/build.yml@self
37+
- name: buildNumber
38+
value: $[ counter('build', 0) ]
3639

3740
extends:
3841
template: v1/1ES.Unofficial.PipelineTemplate.yml@1es
@@ -47,6 +50,11 @@ extends:
4750
compiled:
4851
enabled: true
4952
# runSourceLanguagesInSourceAnalysis: true # temporary change to clean up stale python resuls
53+
autobaseline:
54+
enableForGitHub: true
55+
56+
featureFlags:
57+
autoBaseline: true
5058

5159
settings:
5260
# PR's from forks do not have sufficient permissions to set tags.

0 commit comments

Comments
 (0)