I want to get Jenkins host detail, It seems for windows its present as COMPUTERNAME env variable in "http://<your.jenkins.url>/systemInfo" URL.
But for Linux hosts, I don't see this variable present. Is there any way that I can fetch the Jenkins host (where the Jenkins is running) using python? don't want to use a groovy script as I want to do it w/o running any job.
You can use HOSTNAME from Environment Variables from http://<your.jenkins.url>/systemInfo.
1.4m articles
1.4m replys
5 comments
57.0k users