。
http://<TeamcityServer>/httpAuth/app/rest/builds/?locator=buildType:<BuildType>,state:any,branch:default:any,count:15
:プロジェクト名の前には、設定があります。
state
:使用可能な値は、保留中、待機中、実行中です。
branch
:ブランチ設定が複数のブランチで実行される場合は、これを指定することができます。それ以外の場合は、default
ブランチだけが結果になります。
count
:ここで任意の制限を設定します。
結果は次のようになります。
<builds count="5" href="/guestAuth/app/rest/builds/?locator=buildType:A_B,state:any,branch:default:any,count:5" nextHref="/guestAuth/app/rest/builds/?locator=buildType:A_B,state:any,branch:(default:any),count:5,start:5">
<build id="3767209" buildTypeId="A_B" state="queued" branchName="refs/heads/master" defaultBranch="true" href="/guestAuth/app/rest/buildQueue/id:3767209" webUrl="http://<TeamCityServer>/viewQueued.html?itemId=3767209"/>
<build id="3767307" buildTypeId="A_B" state="queued" branchName="5566" href="/guestAuth/app/rest/buildQueue/id:3767307" webUrl="http://<TeamCityServer>/viewQueued.html?itemId=3767307"/>
<build id="3767394" buildTypeId="A_B" state="queued" branchName="5558" href="/guestAuth/app/rest/buildQueue/id:3767394" webUrl="http://<TeamCityServer>/viewQueued.html?itemId=3767394"/>
<build id="3767425" buildTypeId="A_B" state="queued" branchName="5563" href="/guestAuth/app/rest/buildQueue/id:3767425" webUrl="http://<TeamCityServer>/viewQueued.html?itemId=3767425"/>
<build id="3766826" buildTypeId="A_B" number="7398" status="SUCCESS" state="running" running="true" percentageComplete="42" branchName="5570" href="/guestAuth/app/rest/builds/id:3766826" webUrl="http://<TeamCityServer>/viewLog.html?buildId=3766826&buildTypeId=A_B"/>
</builds>
https://stackoverflow.com/questions/38826604/get-teamcity-build-statusの可能性のある重複 – mikep
与えられた答えは、あなたの必要性を一致しませんでしたか? –