Skip to content

Commit 8269a93

Browse files
authored
[EngSys] add condition for publishing test proxy log (Azure#29610)
The other test proxy steps have this condition. This PR adds the same to publish step as well.
1 parent 8c88e50 commit 8269a93

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

eng/pipelines/templates/steps/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ steps:
9191
condition: and(always(),eq(variables['TestType'], 'browser'))
9292
displayName: "Publish browser unit test results"
9393

94-
- template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml
95-
parameters:
96-
ArtifactPath: '$(Build.ArtifactStagingDirectory)/test-proxy.log'
97-
ArtifactName: 'test proxy logs $(Agent.JobName)'
98-
SbomEnabled: false
94+
- ${{ if eq(parameters.TestProxy, true) }}:
95+
- template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml
96+
parameters:
97+
ArtifactPath: '$(Build.ArtifactStagingDirectory)/test-proxy.log'
98+
ArtifactName: 'test proxy logs $(Agent.JobName)'
99+
SbomEnabled: false

0 commit comments

Comments
 (0)