Azure DevOps部署管道失败[错误]错误:无法基于/users/runner/work/1/s/s/xyz/xyz/abc.ipa找到任何文件
Artifact下载到'/users/runner/work/1/',部署任务正在寻找'/users/runner/runner/work/1/s/xyz/xyz/xyz/ abc.ipa'的工件。
在构建阶段,文物被发布到'Pathtopublish:'$(build.ArtifactStagingDirectory)/$ {{parameters.env}}'''''''''''''''''$(system.defaultworkingdirectory)/xyz/xyz/xyz/xyz/xyz/xyz/xyz/xyz/xyz/xyz/xyz/xyz/ /abc.ipa''
请帮助正确访问IPA文件。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用了两个预定义的变量,但它们指向不同的文件夹结构(doc 在这里):
build.ArtifactStagingDirectory
:在将任何工件复制到其目的地之前复制到其目的地的代理上的本地路径。例如:c:\ agent_work \ 1 \ a
,没有s
文件夹。system.defaultworkingDirectory
:下载源代码文件的代理上的本地路径。例如:c:\ agent_work \ 1 \ s
。建议添加一个PowerShell任务,以列出目录和子目录中的所有文件,以便我们可以找到文件存储在代理上的位置。代码示例:
确认文件居住的位置后,我们可以修改任务的路径,以便找到文件。
Two pre-defined variables are used but they points to different folder structures(doc here):
build.artifactstagingdirectory
: The local path on the agent where any artifacts are copied to before being pushed to their destination. For example:c:\agent_work\1\a
, not haves
folder.System.DefaultWorkingDirectory
: The local path on the agent where your source code files are downloaded. For example:c:\agent_work\1\s
.It's recommended to add a powershell task adhere to list all files in the directory and subdirectory, so that we can find where the files are stored on the agent. code sample:
After we confirm where the file resides, we can modify the path for the task so the file can be found.