简体   繁体   English

发布管道错误:找不到容器路径

[英]Error in release pipeline : Container path not found

I searched in several forums and everyone suggested to add below line in the yaml.我在几个论坛上搜索,每个人都建议在 yaml 中添加以下行。

- task: PublishBuildArtifacts@1

In my case, i am using the classic editor as it is my first time learning Devops.就我而言,我使用的是经典编辑器,因为这是我第一次学习 Devops。 The publish artifact task was already added but I still see the error, "Container path not found".已添加发布工件任务,但我仍然看到错误“找不到容器路径”。 Can someone let me know what am i missing here?有人能让我知道我在这里想念什么吗?

My release pipeline is looking for "D:\a\r1\a.." path whereas artifacts were copied to "D:\a\1\a.." in the build pipeline.我的发布管道正在寻找“D:\a\r1\a..”路径,而工件在构建管道中被复制到“D:\a\1\a..”。

My release pipeline is looking for "D:\a\r1\a.." path whereas artifacts were copied to "D:\a\1\a.." in the build pipeline.我的发布管道正在寻找“D:\a\r1\a..”路径,而工件被复制到构建管道中的“D:\a\1\a..”。

The release pipeline will download your build artifact to the folder "D:\a\r1\a".发布管道会将您的构建工件下载到文件夹“D:\a\r1\a”。 You can find this in your release logs:您可以在发布日志中找到它: 在此处输入图像描述 I can reproduce your issue if the Working Directory of the command line task is incorrect.如果命令行任务的工作目录不正确,我可以重现您的问题。 Please make sure the Working Directory of your task is exist.请确保您的任务的工作目录存在。

在此处输入图像描述

Update: For example: I want to run test.exe in my folder:更新:例如:我想在我的文件夹中运行 test.exe: 在此处输入图像描述

The working directory should be $(System.DefaultWorkingDirectory)/_Jan-CI/drop/test here.工作目录应该是$(System.DefaultWorkingDirectory)/_Jan-CI/drop/test这里。 在此处输入图像描述

Sorry can't comment on Walter's answer atm but just want to add to Walter's answer.抱歉,无法评论 Walter 的回答 atm,但只想添加到 Walter 的回答中。 Based on the error基于错误

Container path not found: 'D:\a\r1\a_MyFirstPipeline\drop\bin\Release\TestDevOps.exe' ` $(System.DefaultWorkingDirectory)/_MyFirstPipeline/drop/bin/Release/TestDevOps.exe``找不到容器路径:'D:\a\r1\a_MyFirstPipeline\drop\bin\Release\TestDevOps.exe' `$(System.DefaultWorkingDirectory)/_MyFirstPipeline/drop/bin/Release/TestDevOps.exe``

It seems like you might have a typo.看起来你可能有错字。 There is an extra 'a' before '_MyFirstPipeline' in your path compared to the 2nd one与第二个路径相比,您路径中的“_MyFirstPipeline”之前有一个额外的“a”

Also, as per Walters comments, if you provide your code then it'll help people diagnose and help more.此外,根据 Walters 的评论,如果您提供您的代码,那么它将帮助人们诊断并提供更多帮助。

I'm going to assume that if your pipeline is looking for your artifact in a different place than where your artifact is stored then thats the error and the cause could be a typo.我假设如果您的管道在与您的工件存储位置不同的地方寻找您的工件,那么这就是错误,原因可能是拼写错误。 Check your code that is publishing the artifact and what location it is using and the code where you're trying to fetch it from matches.检查发布工件的代码及其使用的位置以及您尝试从匹配项中获取它的代码。

I had a similar issue and noticed that my release pipeline has the option enabled "Skip download of artefacts" so in my case release working directory is empty (r1 or r2)我有一个类似的问题并注意到我的发布管道启用了选项“跳过人工制品的下载”所以在我的情况下发布工作目录是空的(r1 或 r2)

Please note during release, the file will be copied from "_Work<somenumber>\a" to "_work\r\drop..."请注意,在发布期间,文件将从“_Work<somenumber>\a”复制到“_work\r\drop...”

Example: "_Work\2\a" to "_work\r2\drop..."示例:“_Work\2\a”到“_work\r2\drop...”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Azure 发布管道中出现“未找到证书”错误 - Getting a "No certificates were found" error in an Azure release pipeline 无法在发布管道中将 PowerShell 文件作为任务运行 - 权限错误 - Unable to run PowerShell file as task in release pipeline - permission error AWS Batch 容器错误:“找不到用户” - AWS Batch Container Error: "no users found" Azure 管道发布管道:ARM 模板部署:资源组 scope 失败,错误代码:部署失败” - Azure pipeline Release pipeline: ARM Template deployment: Resource Group scope fails with ,,Error code: DeploymentFailed" Azure 构建管道和发布管道nodejs - Azure build pipeline and release pipeline nodejs Azure DevOps 发布管道中的 Bicep - Azure Bicep in DevOps release pipeline AWS Lambda:使用容器映像但仍然找不到程序路径 - AWS Lambda: Using container image but still getting program path not found azure 突触中 spark notebook 管道中的文件路径错误 - File path error in pipeline for spark notebook in azure synapse 在成功的管道上发布版本 - Publish release upon successful pipeline 找不到图像:404 客户端错误:找不到:aws-ecr-push-image atlassian 管道 - Image not found: 404 Client Error: Not Found: aws-ecr-push-image atlassian pipeline
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM