0
特定のJenkinsノードが接続されていることを確認しようとしています。Jenkins CLI を使用して接続しています。ノードの詳細情報を取得するには、私はget-node
コマンドを使用することができ、それは、このXMLjenkins-cliを使用してjenkinsノードの接続状態を確認する方法
<?xml version="1.0" encoding="UTF-8"?>
<slave>
<name>20170602_jenkins_slave_002</name>
<description>10.49.82.46</description>
<remoteFS>c:\\jenkins_root</remoteFS>
<numExecutors>1</numExecutors>
<mode>EXCLUSIVE</mode>
<retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
<launcher class="hudson.slaves.JNLPLauncher"/>
<label>20170602_jenkins_slave_002</label>
<nodeProperties/>
<userId>admin</userId>
</slave>
などの詳細を返します。しかし、それはノードのステータスが含まれていません。 offline
を含む
http://jenkins.example.com/computer/:name/api/json
を返すJSONデータ:誰でもどのように私はjenkins-cliを使用する方法を認識していないよとジェンキンスCLI
私はジェンキンスは、JSONのAPIを持って知っていたことはありません。ノードのリストも取得できます。ありがとうございました。これが私が探していたものです –