由于这个问题,我刚刚找到了一个可行的解决方案。如果其他人正在寻找完整的解决方案,我会在这里展示它:
您需要知道buildTypeId
要在其上获取待处理更改的构建版本。在这种情况下,让我们说buildTypeId=bt85
1
http://<server>/httpAuth/app/rest/buildTypes/id:bt85/builds/
// Get the last build from the XML returned.
// Lets say last build id = 14000
2
http://<server>/httpAuth/app/rest/changes?build=id:14000
// The newest change returned is the one you need.
// Lets say newest change id = 15000
3
http://<server>/httpAuth/app/rest/changes?buildType=id:bt85&sinceChange=15000
// You're now looking at the pending changes list of the buildType bt85