azure-devops - VS402925 : BuildId is not valid. 确保build id有效再试

标签 azure-devops azure-pipelines-release-pipeline

我正在尝试将我的应用程序部署到 VSTS 中的本地服务器上,但收到此错误消息;

VS402925: BuildId '20170615.2' is not valid. Make sure that the build id is valid and try again.

我在创建部署过程时指定了构建 ID。 BuildId 确实存在,为什么它无效? enter image description here

最佳答案

那不是构建 ID。那是内部版本编号。构建 ID 是由系统分配的序列号。

根据 REST API ,您可以获得给定构建的构建 ID,如下所示:

GET https://fabrikam-fiber-inc.visualstudio.com/DefaultCollection/Fabrikam-Fiber-Git/_apis/build/builds?buildNumber=<your build number>&api-version=2.0

您可能还需要指定 definitionId属性进一步过滤列表。

关于azure-devops - VS402925 : BuildId is not valid. 确保build id有效再试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44783997/

相关文章:

powershell - Azure 管道 - 将 .coverage 转换为 xml 以生成代码覆盖率报告

azure-devops - 忽略 'Delete Files Task' 内的文件

SSL 证书添加失败,错误 : 183 Cannot create a file when that file already exists on VSTS

tfs - 防止 TFS 在构建/发布时删除节点模块

visual-studio - 使用 VSTS Release 发布 Azure 数据工厂项目

azure-devops - 阶段之间管道中的 VSTS 传递参数

azure - 如何确定给定的 Azure DevOps PAT token 是否对所有可访问的组织都有效?

azure-devops - 如何使用平面列表查询列出与史诗关联的功能?

azure - Azure Devops 中的 Invoke-Restmethod powershell - 奇怪的 powershell 错误

asp.net-core - 使用托管生成代理从 Visual Studio Team Services 发布 ASP.NET 5 RC1 项目时出错