我看到有一个REST端点可以通过其ID(https://docs.microsoft.com/en-us/rest/api/azure/devops/build/builds/get%20build%20log?view=azure-devops-rest-5.1)获取日志
从我看到的每一步都有一个日志,然后最后一个日志包含了所有步骤。这始终是回应吗?是否在最后一个日志将始终是完整日志的地方记录了此信息?
并且有一种方法可以知道在构建失败的阶段获取哪个日志?因为我只需要一个导致构建失败的脚本,而不是全部。
不,目前没有这种方法可以在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?