Azure DevOps部署管道失败[错误]错误:无法基于/users/runner/work/1/s/s/xyz/xyz/abc.ipa找到任何文件

发布于 2025-01-22 06:20:05 字数 327 浏览 3 评论 0 原文

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文件。

Artifact is downloaded to '/Users/runner/work/1/' and the deployment task is looking for the artifact at '/Users/runner/work/1/s/XYZ/**/ABC.ipa'.

In build stage, artifacts are published to 'PathtoPublish: '$(build.artifactstagingdirectory)/${{parameters.env}}'' and in deployment, artifacts are accessed using ''$(System.DefaultWorkingDirectory)/XYZ/**/ABC.ipa''

Please help to access the ipa file correctly.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

高冷爸爸 2025-01-29 06:20:05

使用了两个预定义的变量,但它们指向不同的文件夹结构(doc 在这里):
build.ArtifactStagingDirectory :在将任何工件复制到其目的地之前复制到其目的地的代理上的本地路径。例如: c:\ agent_work \ 1 \ a ,没有 s 文件夹。

system.defaultworkingDirectory :下载源代码文件的代理上的本地路径。例如: c:\ agent_work \ 1 \ s

建议添加一个PowerShell任务,以列出目录和子目录中的所有文件,以便我们可以找到文件存储在代理上的位置。代码示例:

- task: PowerShell@2
  name: listfiles
  inputs:
    targetType: 'inline'
    script: 'Get-ChildItem -Path $(System.DefaultWorkingDirectory) -Recurse -File'

确认文件居住的位置后,我们可以修改任务的路径,以便找到文件。

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 have s 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:

- task: PowerShell@2
  name: listfiles
  inputs:
    targetType: 'inline'
    script: 'Get-ChildItem -Path $(System.DefaultWorkingDirectory) -Recurse -File'

After we confirm where the file resides, we can modify the path for the task so the file can be found.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文