Skip to content

Commit 6299edb

Browse files
committed
Use environment: none if in TestPipeline
1 parent fc0b675 commit 6299edb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

eng/pipelines/templates/stages/archetype-rust-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ stages:
7272
- input: pipelineArtifact # Required, type of the input artifact
7373
artifactName: ${{parameters.PipelineArtifactName}} # Required, name of the pipeline artifact
7474
targetPath: $(Pipeline.Workspace)/drop # Optional, specifies where the artifact is downloaded to
75-
${{ if not(parameters.TestPipeline) }}:
76-
environment: ${{parameters.Environment}}
75+
${{if parameters.TestPipeline}}:
76+
environment: none
77+
${{else}}:
78+
environment: ${{parameters.Environment}}
7779
# This timeout shouldn't be necessary once we're able to parallelize better. Right now,
7880
# this is here to ensure larger areas (30+) libraries don't time out.
7981
timeoutInMinutes: 120

0 commit comments

Comments
 (0)