Check_mate
Check_mate

Reputation: 45

How to get jenkins host detail?

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.

Upvotes: 0

Views: 732

Answers (1)

gengisdave
gengisdave

Reputation: 2050

You can use HOSTNAME from Environment Variables from http://<your.jenkins.url>/systemInfo.

Upvotes: 1

Related Questions