Skip to content

Commit c2b2f8e

Browse files
committed
Update samples pipeline to new infrastructure
1 parent fe55a65 commit c2b2f8e

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

eng/pipelines/dotnet-framework-samples.yml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,38 @@ parameters:
1717
building new images, leave this value alone.
1818
type: string
1919
default: $(Build.BuildId)
20+
- name: noCache
21+
displayName: >
22+
Run build with no cache. When this is unchecked, the build will use the
23+
info in the dotnet/versions repo to build only the images which have had
24+
Dockerfile changes or base images updates. When this is checked, all images
25+
will be built regardless of caching status.
26+
type: boolean
27+
default: false
2028

2129
variables:
2230
- template: /eng/pipelines/variables/common.yml@self
23-
parameters:
24-
sourceBuildPipelineRunId: ${{ parameters.sourceBuildPipelineRunId }}
25-
- template: /eng/common/templates/variables/dotnet/secrets.yml@self
31+
- template: /eng/common/templates/variables/dotnet/secrets${{ iif(contains(variables['Build.DefinitionName'], '-official'), '', '-unofficial') }}.yml@self
2632
- name: manifest
2733
value: manifest.samples.json
2834
- name: imageInfoVariant
2935
value: "-samples"
3036

3137
extends:
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
46-
${{ if eq(variables['System.TeamProject'], 'public') }}:
47-
buildMatrixCustomBuildLegGroupArgs: --custom-build-leg-group pr-build
45+
sourceBuildPipelineRunId: ${{ parameters.sourceBuildPipelineRunId }}
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

Comments
 (0)