问题
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.
回答1:
I think you can find this information in the Jenkins wiki https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API
来源:https://stackoverflow.com/questions/7064119/expose-hudson-system-info-to-remote-api