File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,15 @@ parameters:
2222 type : string
2323 default : $(Build.BuildId)
2424
25+ - name : noCache
26+ displayName : >
27+ Run build with no cache. When this is unchecked, the build will use the
28+ info in the dotnet/versions repo to build only the images which have had
29+ Dockerfile changes or base images updates. When this is checked, all images
30+ will be built regardless of caching status.
31+ type : boolean
32+ default : false
33+
2534schedules :
2635- cron : " 0 5 1,15 * *"
2736 displayName : Monthly rebuild of all images
@@ -60,3 +69,4 @@ extends:
6069 parameters :
6170 sourceBuildPipelineRunId : ${{ parameters.sourceBuildPipelineRunId }}
6271 publishConfigTemplatePath : /eng/common/templates/stages/dotnet/publish-config-prod.yml@self
72+ noCache : ${{ parameters.noCache }}
Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ parameters:
1616 type : string
1717 default : $(Build.BuildId)
1818
19+ - name : noCache
20+ displayName : >
21+ Run build with no cache. When this is unchecked, the build will use the
22+ info in the dotnet/versions repo to build only the images which have had
23+ Dockerfile changes or base images updates. When this is checked, all images
24+ will be built regardless of caching status.
25+ type : boolean
26+ default : false
27+
1928variables :
2029- template : /eng/pipelines/variables/common.yml@self
2130 parameters :
@@ -43,3 +52,4 @@ extends:
4352 parameters :
4453 sourceBuildPipelineRunId : ${{ parameters.sourceBuildPipelineRunId }}
4554 publishConfigTemplatePath : /eng/common/templates/stages/dotnet/publish-config-nonprod.yml@self
55+ noCache : ${{ parameters.noCache }}
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ parameters:
33 type : string
44 default : $(Build.BuildId)
55
6+ - name : noCache
7+ type : boolean
8+ default : false
9+
610- name : publishConfigTemplatePath
711 type : string
812
@@ -38,6 +42,8 @@ stages:
3842 # See https://github.com/dotnet/dotnet-buildtools-prereqs-docker/issues/1224
3943 ${{ if eq(variables['Build.Reason'], 'Schedule') }} :
4044 noCache : true
45+ ${{ else }} :
46+ noCache : ${{ parameters.noCache }}
4147 ${{ if contains(variables['Build.DefinitionName'], '-official') }} :
4248 additionalServiceConnections :
4349 - name : $(marStatus.serviceConnectionName)
You can’t perform that action at this time.
0 commit comments