本文介绍了TFS Rest API不适用于日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此方法为何行不通的任何想法:
Any idea why this method does not work:
GET https://{instance}/DefaultCollection/{project}/_apis/build/builds/{buildId}/logs?api-version=2.0
我能够获取构建定义等信息,但是当我尝试基于此构建ID获取日志时,出现此错误:
I am able to get build definition, etc. but when I try to get log based on this build ID, I'm getting this error:
推荐答案
我不确定这是否受支持,但以下内容对我有用.
I'm not sure if this is a supported API, but the following works for me.
VSTS:https://{instance} .visualstudio.com/{project}/_apis/build/builds/{buildid}/logs?$ format = zip
VSTS: https://{instance}.visualstudio.com/{project}/_apis/build/builds/{buildid}/logs?$format=zip
TFS:http://{instance}/Collection/{project}/_apis/build/builds/81590/logs?$ format = zip
TFS: http://{instance}/Collection/{project}/_apis/build/builds/81590/logs?$format=zip
这篇关于TFS Rest API不适用于日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!