Skip to content

Commit 492e1ee

Browse files
committed
Switch to OAV's official pipeline
1 parent 94e8ca1 commit 492e1ee

File tree

1 file changed

+29
-36
lines changed

1 file changed

+29
-36
lines changed

.ado/esrp.yml

Lines changed: 29 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -29,36 +29,40 @@ variables:
2929

3030
resources:
3131
repositories:
32-
- repository: templates
32+
- repository: 1ESPipelineTemplates
3333
type: git
34-
name: OneBranch.Pipelines/GovernedTemplates
35-
ref: refs/heads/main
34+
name: 1ESPipelineTemplates/1ESPipelineTemplates
35+
ref: refs/tags/release
3636

3737
extends:
38-
template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates # https://aka.ms/obpipelines/templates
38+
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
3939
parameters:
40-
cloudvault: # https://aka.ms/obpipelines/cloudvault
41-
'enabled': false
42-
globalSdl: # https://aka.ms/obpipelines/sdl
43-
asyncSdl: # https://aka.ms/obpipelines/asyncsdl
40+
settings:
41+
skipBuildTagsForGitHubPullRequests: true
42+
sdl:
43+
git:
44+
longpaths: true
45+
submodules: false
46+
sourceRepositoriesToScan:
47+
include:
48+
- repository: self
49+
submodule: false
50+
runInSingleJob: true
51+
sourceAnalysisPool:
52+
name: azsdk-pool-mms-win-2022-general
53+
image: azsdk-pool-mms-win-2022-1espt
54+
os: windows
55+
eslint:
4456
enabled: false
45-
# tsa:
46-
# enabled: true
47-
# breakOnFailure: true
48-
# credscan:
49-
# suppressionsFile: $(Build.SourcesDirectory)\.config\CredScanSuppression.json
50-
binskim:
51-
break: true # always break the build on binskim issues. You can disable it by setting to 'false'
52-
policheck:
53-
break: true # always break the build on policheck issues. You can disable it by setting to 'false'
54-
exclusionsFile: $(Build.SourcesDirectory)\.config\PolicheckExclusion.xml
55-
suppression:
56-
suppressionFile: $(Build.SourcesDirectory)\.gdn\global.gdnsuppress #suppressing signing issues for Xamarin dlls
57-
perStage:
58-
sdl_sources:
59-
checkout_all_repos: true
60-
featureFlags:
61-
WindowsHostVersion: '1ESWindows2022'
57+
justificationForDisabling: "ESLint injected task has failures because it uses an old version of mkdirp. We should not fail for tools not controlled by the repo. See: https://dev.azure.com/azur 19 e-sdk/internal/_build/results?buildId=3556850"
58+
codeql:
59+
compiled:
60+
enabled: false
61+
justificationForDisabling: "CodeQL times our pipelines out by running for 2+ hours before being force canceled."
62+
psscriptanalyzer:
63+
compiled: true
64+
break: true
65+
policy: M365
6266

6367
stages:
6468
- stage: build
@@ -68,17 +72,6 @@ extends:
6872
pool:
6973
type: windows # read more about custom job pool types at https://aka.ms/obpipelines/yaml/jobs
7074

71-
variables:
72-
ob_outputDirectory: '$(Build.ArtifactStagingDirectory)' # this directory is uploaded to pipeline artifacts, reddog and cloudvault. More info at https://aka.ms/obpipelines/artifacts
73-
ob_sdl_binskim_break: true # https://aka.ms/obpipelines/sdl
74-
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main') }}: # conditionally enable symbolsPublishing for default branch only
75-
ob_symbolsPublishing_enabled: true # https://aka.ms/obpipelines/symbols
76-
ob_symbolsPublishing_searchPattern: '**/*.pdb'
77-
ob_symbolsPublishing_indexSources: true
78-
ob_symbolsPublishing_symbolsFolder: $(Build.SourcesDirectory)/microsoft-authentication-library-for-java/msal4j-sdk/src
79-
${{ if eq(variables['variables.UploadPackages'], 'true') }}: #Uploads packages to VSTS feed. Only enabled on official build
80-
ob_nugetPublishing_enabled: true
81-
8275
steps:
8376
- checkout: self
8477
submodules: false

0 commit comments

Comments
 (0)