2

I was wondering if anyone has been able to expose the system info from Hudson/Jenkins to the remote API?

I manage multiple instances and would like to be able to gather some basic information and statistics about each instance together to be able to compare them.

At the moment, I would just like to obtain the java.home directory so I can resolve the version of Java being used on builds that show "(Default)" as the jdkVersion. But would also like some load statistics/memory usage is possible.

  • see question http://stackoverflow.com/questions/18348184/how-can-i-get-system-configuration-for-jenkins-using-remote-access-api/ – Larry Cai Aug 22 '13 at 01:39

1 Answers1

0

I think you can find this information in the Jenkins wiki https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API

  • 1
    I have already used this, but it doesnt expose system variables, I was hoping someone may have alreay produced a plugin/found another way to access this information – lrobertson39 Aug 17 '11 at 07:32
  • Well, you can always locate the settings files of jenkins, parse them and gather the data you want. The shell script for this would not be complicated. – Dmitry Alexandrov Aug 17 '11 at 07:41