Skip to content

Commit 93fb41b

Browse files
committed
Add new parameters and service connections to pipelines
1 parent 659cc93 commit 93fb41b

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

eng/pipelines/dotnet-framework-samples.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,20 @@ resources:
88
endpoint: dotnet
99
name: dotnet/versions
1010

11+
parameters:
12+
- name: sourceBuildPipelineRunId
13+
displayName: >
14+
Source build pipeline run ID. This refers to runs of *this pipeline*.
15+
Override this parameter in combination with disabling the `Build` stage to
16+
test or publish images that were built in a different pipeline run. When
17+
building new images, leave this value alone.
18+
type: string
19+
default: $(Build.BuildId)
20+
1121
variables:
1222
- template: /eng/pipelines/variables/common.yml@self
23+
parameters:
24+
sourceBuildPipelineRunId: ${{ parameters.sourceBuildPipelineRunId }}
1325
- name: manifest
1426
value: manifest.samples.json
1527
- name: imageInfoVariant
@@ -18,6 +30,12 @@ variables:
1830
extends:
1931
template: /eng/common/templates/1es-official.yml@self
2032
parameters:
33+
serviceConnections:
34+
- name: $(internal-mirror.serviceConnectionName)
35+
- name: $(build.serviceConnectionName)
36+
- name: $(publish.serviceConnectionName)
37+
- name: $(kusto.serviceConnectionName)
38+
- name: $(marStatus.serviceConnectionName)
2139
stages:
2240
- template: /eng/common/templates/stages/dotnet/build-test-publish-repo.yml@self
2341
parameters:

eng/pipelines/dotnet-framework.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,20 @@ resources:
88
endpoint: dotnet
99
name: dotnet/versions
1010

11+
parameters:
12+
- name: sourceBuildPipelineRunId
13+
displayName: >
14+
Source build pipeline run ID. This refers to runs of *this pipeline*.
15+
Override this parameter in combination with disabling the `Build` stage to
16+
test or publish images that were built in a different pipeline run. When
17+
building new images, leave this value alone.
18+
type: string
19+
default: $(Build.BuildId)
20+
1121
variables:
1222
- template: /eng/pipelines/variables/common.yml@self
23+
parameters:
24+
sourceBuildPipelineRunId: ${{ parameters.sourceBuildPipelineRunId }}
1325
- name: manifest
1426
value: manifest.json
1527
- name: mcrImageIngestionTimeout
@@ -18,10 +30,17 @@ variables:
1830
extends:
1931
template: /eng/common/templates/1es-official.yml@self
2032
parameters:
33+
serviceConnections:
34+
- name: $(internal-mirror.serviceConnectionName)
35+
- name: $(build.serviceConnectionName)
36+
- name: $(publish.serviceConnectionName)
37+
- name: $(kusto.serviceConnectionName)
38+
- name: $(marStatus.serviceConnectionName)
2139
stages:
2240
- template: /eng/common/templates/stages/dotnet/build-test-publish-repo.yml@self
2341
parameters:
2442
internalProjectName: ${{ variables.internalProjectName }}
2543
publicProjectName: ${{ variables.publicProjectName }}
44+
sourceBuildPipelineRunId: ${{ parameters.sourceBuildPipelineRunId }}
2645
windowsAmdBuildJobTimeout: 240
2746
windowsAmdTestJobTimeout: 90

eng/pipelines/variables/common.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
parameters:
2+
# sourceBuildPipelineRunId should be overridden when skipping a build to run
3+
# tests or publish images that were produced in a different pipeline run.
4+
- name: sourceBuildPipelineRunId
5+
type: string
6+
default: ""
7+
18
variables:
29
- template: /eng/common/templates/variables/dotnet/build-test-publish.yml@self
10+
parameters:
11+
sourceBuildPipelineRunId: ${{ parameters.sourceBuildPipelineRunId }}
312
- name: publicGitRepoUri
413
value: https://github.com/microsoft/dotnet-framework-docker
514
- name: productVersionComponents

0 commit comments

Comments
 (0)