【发布时间】:2023-04-07 04:07:01
【问题描述】:
我正在为 python 包构建创建 Azure DevOps 管道,但任务 ArchiveFiles@2 失败。
- stage: Build
jobs:
- job: BuildApp
pool:
vmImage: 'ubuntu-latest'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.SourcesDirectory)'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
replaceExistingArchive: true
verbose: true
错误日志是这样的
Found 20 files
Archiving file: .env_sample
... 21 more ...
##[debug]Checking for archive destination folder:/__w/1/a
##[debug]Creating archive with zip: /__w/1/a/1009007.zip
##[debug]which 'zip'
##[debug]not found
##[debug]Unable to locate executable file: 'zip'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
【问题讨论】:
-
您好,刚刚检查一下这个问题现在是否仍然阻碍您?这个问题有更新吗?
-
是的,我仍然有这个问题。根据我得到的答案,它应该适用于 Ubuntu 最新版本,但我不确定为什么它在我的情况下不起作用。
-
嗨@CPP_atheitia,你能检查一下你的组织区域,然后在这里分享吗?另外,能否尝试创建另一个区域组织并再次测试?
-
@Carlos hi,该地区是西欧
标签: python azure-devops