Jenkins(Hudson) Remote API を使用して、freeStyleProject からの XML 応答を使用しようとしています。
Jenkins のドキュメントでツリー クエリ パラメーターについて調査しています。ここでは、XML 応答を取得するための応答時間を改善するために使用しようとしています。しかし、Jenkins は、ジョブのノードdownstreamProject とビルドのアクション/パラメータを次の URL で生成できないようです:
http://localhost/job/MyJob/api/xml?depth=2&tree=name,description,builds[ action[parameter[name,value] ]number,url,timestamp,result],healthReport[score,description], downstreamProject [名前、URL]
私はちょうどこの応答 XML を取得します。
<freeStyleProject>
<description>Description</description>
<name>MyJob</name>
<build>
<number>2</number>
<result>SUCCESS</result>
<timestamp>1325784290000</timestamp>
<url>http://localhost/job/MyJob/2/</url>
</build>
<build>
<number>1</number>
<result>SUCCESS</result>
<timestamp>1323931754000</timestamp>
<url>http://localhost/job/MyJob/1/</url>
</build>
<healthReport>
<description>Build stability: No recent builds failed.</description>
<score>100</score>
</healthReport>
</freeStyleProject>
おそらく、tree クエリ パラメータはこれらをサポートしていませんか? xpath および exlude クエリ パラメータを使用してこのノードを取得する唯一の方法はありますか?