I'm automating a Jenkins tool using the Jenkins API that needs to know the value of $JENKINS_HOME. This tool is running outside of Jenkins.
I'm using http:///systemInfo to see the environment variables.
Unfortunately the API for this doesn't have the env vars:
http:///api/xml/systemInfo
The problem is, the systemInfo page requires admin, it gives the error that the user is missing the Overall/Administer permission.
So - why does systemInfo need admin (but the XML doesn't) - or more importantly, how can I get the JENKINS_HOME for a given Jenkins server using regular user credentials?