diff --git a/.azure/pipelines/localization.yml b/.azure/pipelines/localization.yml index 65f9c9c3ee2a..e77cdd155891 100644 --- a/.azure/pipelines/localization.yml +++ b/.azure/pipelines/localization.yml @@ -25,13 +25,42 @@ parameters: variables: - name: _TeamName value: AspNetCore -- template: /eng/common/templates/variables/pool-providers.yml - -jobs: -- ${{ if and(ne(variables['System.TeamProject'], 'public'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.Reason'], 'Manual'))) }}: - - template: /eng/common/templates/job/onelocbuild.yml - parameters: - CreatePr: ${{ or(ne(variables['Build.Reason'], 'Manual'), eq(parameters.createPr, 'true')) }} - LclPackageId: 'LCL-JUNO-PROD-ASPNETCORE' - LclSource: lclFilesFromPackage - MirrorRepo: aspnetcore +- template: /eng/common/templates-official/variables/pool-providers.yml@self + + +resources: + repositories: + # Repo: 1ESPipelineTemplates/1ESPipelineTemplates + - repository: 1esPipelines + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release + +extends: + template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines + parameters: + sdl: + sourceAnalysisPool: + name: $(DncEngInternalBuildPool) + image: 1es-windows-2022 + os: windows + codeql: + compiled: + enabled: false + justificationForDisabling: "This pipeline doesn't build any code. The product code is already scanned in the main pipeline (aspnetcore-ci)" + pool: + name: $(DncEngInternalBuildPool) + image: 1es-windows-2022 + os: windows + + stages: + - stage: build + displayName: Build + jobs: + - ${{ if and(ne(variables['System.TeamProject'], 'public'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.Reason'], 'Manual'))) }}: + - template: /eng/common/templates-official/job/onelocbuild.yml@self + parameters: + CreatePr: ${{ or(ne(variables['Build.Reason'], 'Manual'), eq(parameters.createPr, 'true')) }} + LclPackageId: 'LCL-JUNO-PROD-ASPNETCORE' + LclSource: lclFilesFromPackage + MirrorRepo: aspnetcore