是否有任何方法可以知道并仅获取使用REST API在Azure DevOps管道上发生错误的阶段的日志?

问题描述 投票:0回答:1

我看到有一个REST端点可以通过其ID(https://docs.microsoft.com/en-us/rest/api/azure/devops/build/builds/get%20build%20log?view=azure-devops-rest-5.1)获取日志

从我看到的每一步都有一个日志,然后最后一个日志包含了所有步骤。这始终是回应吗?是否在最后一个日志将始终是完整日志的地方记录了此信息?

并且有一种方法可以知道在构建失败的阶段获取哪个日志?因为我只需要一个导致构建失败的脚本,而不是全部。

azure azure-devops azure-pipelines azure-rest-api
1个回答
0
投票

不,目前没有这种方法可以在Azure DevOps Service中实现您所需要的。

And from what I see there's a log for each step and then the last log contains all steps. Is this always how the response will be?

© www.soinside.com 2019 - 2024. All rights reserved.