diff --git a/tools/ci_build/github/azure-pipelines/templates/linux-web-ci.yml b/tools/ci_build/github/azure-pipelines/templates/linux-web-ci.yml index 32b262c967..3dc16d3332 100644 --- a/tools/ci_build/github/azure-pipelines/templates/linux-web-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/linux-web-ci.yml @@ -123,9 +123,15 @@ jobs: key: onnxtestdata | $(Build.SourcesDirectory)\js\scripts\prepare-onnx-node-tests.ts restoreKeys: | onnxtestdata | $(Build.SourcesDirectory)\js\scripts\prepare-onnx-node-tests.ts - onnxtestdata path: $(Build.SourcesDirectory)/js/test/ + cacheHitVar: CACHE_RESTORED displayName: 'Cache ONNX node test data' + - task: Bash@3 + inputs: + targetType: 'inline' + script: find "$(Build.SourcesDirectory)/js/test/" -type f + condition: and(not(canceled()), eq(variables.CACHE_RESTORED, 'true')) + displayName: 'List ONNX node test data' - task: PowerShell@2 inputs: filePath: '$(Build.SourcesDirectory)/tools/ci_build/github/js/pack-npm-packages.ps1' diff --git a/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml b/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml index a8c0e0350d..b661ecd012 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-web-ci.yml @@ -131,9 +131,15 @@ jobs: key: onnxtestdata | $(Build.SourcesDirectory)\js\scripts\prepare-onnx-node-tests.ts restoreKeys: | onnxtestdata | $(Build.SourcesDirectory)\js\scripts\prepare-onnx-node-tests.ts - onnxtestdata path: $(Build.SourcesDirectory)/js/test/ + cacheHitVar: CACHE_RESTORED displayName: 'Cache ONNX node test data' + - task: Bash@3 + inputs: + targetType: 'inline' + script: find "$(Build.SourcesDirectory)/js/test/" -type f + condition: and(not(canceled()), eq(variables.CACHE_RESTORED, 'true')) + displayName: 'List ONNX node test data' - task: PowerShell@2 inputs: filePath: '$(Build.SourcesDirectory)\tools\ci_build\github\js\pack-npm-packages.ps1'