问题描述
我在提取工件时遇到问题。 我有一个从管道下载工件的任务,完成后应提取zip文件,但会引发错误:错误:rmRF失败:命令失败:rd / s / q“ c:\ Users \ agent_002 \ xxx” 该进程无法访问文件,因为该文件正在被另一个进程使用。
我试图检查是否将此文件复制到另一个位置,然后尝试将其解压缩,但是没有任何运气。 任何想法什么过程可以使用它以及如何解决这个问题?
我的代码:
- stage: download_and_extract
jobs:
- job: download_pipeline_artefact
pool:
name: default
demands: agent.os -equals Windows_NT
steps:
- task: DownloadPipelineArtifact@2
inputs:
patterns: '**/*.zip'
path: $(Build.SourcesDirectory)/bin
- task: CopyFiles@2
inputs:
sourceFolder: $(Build.SourcesDirectory)/bin/
targetFolder: $(Build.SourcesDirectory)
- task: ExtractFiles@1
inputs:
archiveFilePatterns: '$(Build.SourcesDirectory)/xxx/xxx.zip'
有什么想法我做错了吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)