11trigger : none
22pr : none
33
4- resources :
5- repositories :
6- - repository : VersionsRepo
7- type : github
8- endpoint : dotnet
9- name : dotnet/versions
10-
114parameters :
125- name : sourceBuildPipelineRunId
136 displayName : >
@@ -17,32 +10,45 @@ parameters:
1710 building new images, leave this value alone.
1811 type : string
1912 default : $(Build.BuildId)
13+ - name : noCache
14+ displayName : >
15+ Run build with no cache. When this is unchecked, the build will use the
16+ info in the dotnet/versions repo to build only the images which have had
17+ Dockerfile changes or base images updates. When this is checked, all images
18+ will be built regardless of caching status.
19+ type : boolean
20+ default : false
2021
2122variables :
2223- template : /eng/pipelines/variables/common.yml@self
23- parameters :
24- sourceBuildPipelineRunId : ${{ parameters.sourceBuildPipelineRunId }}
25- - template : /eng/common/templates/variables/dotnet/secrets.yml@self
24+ - template : /eng/common/templates/variables/dotnet/secrets${{ iif(contains(variables['Build.DefinitionName'], '-official'), '', '-unofficial') }}.yml@self
2625- name : manifest
2726 value : manifest.json
2827- name : mcrImageIngestionTimeout
2928 value : " 00:30:00"
3029
30+ resources :
31+ repositories :
32+ - repository : VersionsRepo
33+ type : github
34+ endpoint : dotnet
35+ name : dotnet/versions
36+
3137extends :
32- template : /eng/common/templates/1es-official .yml@self
38+ template : /eng/common/templates/1es.yml@self
3339 parameters :
34- serviceConnections :
35- - name : $(internal-mirror.serviceConnectionName)
36- - name : $(build.serviceConnectionName)
37- - name : $(publish.serviceConnectionName)
38- - name : $(kusto.serviceConnectionName)
39- - name : $(marStatus.serviceConnectionName)
40+ reposToExcludeFromScanning :
41+ - VersionsRepo
4042 stages :
41- - template : /eng/common/templates/stages/dotnet/build-test-publish-repo .yml@self
43+ - template : /eng/common/templates/stages/dotnet/publish-config-${{ iif(contains(variables['Build.DefinitionName'], '-official'), 'prod', 'nonprod') }} .yml@self
4244 parameters :
43- internalProjectName : ${{ variables.internalProjectName }}
44- publicProjectName : ${{ variables.publicProjectName }}
45- versionsRepoRef : VersionsRepo
4645 sourceBuildPipelineRunId : ${{ parameters.sourceBuildPipelineRunId }}
47- windowsAmdBuildJobTimeout : 240
48- windowsAmdTestJobTimeout : 90
46+ stagesTemplate : /eng/pipelines/stages/dotnet-framework-base.yml@self
47+ stagesTemplateParameters :
48+ versionsRepoRef : VersionsRepo
49+ sourceBuildPipelineRunId : ${{ parameters.sourceBuildPipelineRunId }}
50+ noCache : ${{ parameters.noCache }}
51+ ${{ if contains(variables['Build.DefinitionName'], '-official') }} :
52+ additionalServiceConnections :
53+ - name : $(kusto.serviceConnectionName)
54+ - name : $(marStatus.serviceConnectionName)
0 commit comments