提交 51beb723 编写于 作者: P Paul Sandoz

[JENKINS-8996] Include OS type and version of slave in the system information page.

上级 779e1134
......@@ -91,6 +91,9 @@ Upcoming changes</a>
Added an option to aggregated test results to include failed builds as well as passing and unstable builds.
<li class=rfe>
Added autocompletion to "Build after other projects" textbox, with support for "autoCompleteField" on textboxes without a true field.
<li class=rfe>
Include OS type and version of slave in the system information page.
(<a href="http://issues.jenkins-ci.org/browse/JENKINS-8996">issue 8996</a>)
</ul>
</div><!--=TRUNK-END=-->
......
......@@ -514,6 +514,20 @@ public class SlaveComputer extends Computer {
return ((Slave)node).getLauncher();
}
/**
* Get the slave version
*/
public String getSlaveVersion() throws IOException, InterruptedException {
return channel.call(new SlaveVersion());
}
/**
* Get the OS description.
*/
public String getOSDescription() throws IOException, InterruptedException {
return channel.call(new DetectOS()) ? "Unix" : "Windows";
}
private static final Logger logger = Logger.getLogger(SlaveComputer.class.getName());
private static final class SlaveVersion implements Callable<String,IOException> {
......
......@@ -33,6 +33,7 @@ THE SOFTWARE.
<l:main-panel>
<l:isAdmin>
<h1>${it.oSDescription} slave, version ${it.slaveVersion}</h1>
<h1>${%System Properties}</h1>
<t:propertyTable items="${it.systemProperties}" />
<h1>${%Environment Variables}</h1>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册