Skip to content

Commit 903eef7

Browse files
authored
[PERF] Fix crossgen zip missing error (dotnet#87662)
Only run ArchiveFiles for runKinds that use it.
1 parent 35a598b commit 903eef7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

eng/pipelines/coreclr/templates/run-scenarios-job.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,14 @@ jobs:
186186
PERFLAB_TARGET_FRAMEWORKS: net7.0
187187
condition: and(succeeded(), eq(variables['Agent.Os'], 'Darwin'))
188188

189-
# Zip the workitem directory (for xharness based workitems)
190-
- task: ArchiveFiles@2
191-
inputs:
192-
rootFolderOrFile: '$(WorkItemDirectory)'
193-
includeRootFolder: false
194-
archiveFile: '$(WorkItemDirectory).zip'
195-
verbose: True
189+
# Zip the workitem directory (for xharness (mobile) based workitems)
190+
- ${{ if or(eq(parameters.runKind, 'android_scenarios'), eq(parameters.runKind, 'ios_scenarios')) }}:
191+
- task: ArchiveFiles@2
192+
inputs:
193+
rootFolderOrFile: '$(WorkItemDirectory)'
194+
includeRootFolder: false
195+
archiveFile: '$(WorkItemDirectory).zip'
196+
verbose: True
196197

197198
# run perf testing in helix
198199
- template: /eng/pipelines/coreclr/templates/perf-send-to-helix.yml

0 commit comments

Comments
 (0)