2

Jenkins has many api's but do we have anything using which we can fetch systeminfo via python code or web scraping.

The system info will be present on the web page http://your.jenkins.url/systemInfo

Check_mate
  • 45
  • 8
  • Are you saying that the system info already *is* present at that URL, or that you somehow want to *make* it so that the system info is available at that URL? – Shane Bishop Jan 28 '21 at 01:50
  • It's already available, basically, it's available for every Jenkins master. – Check_mate Jan 28 '21 at 13:41
  • You say the system info is already available at that URL, so then yes, you can use web scraping to get the information from the webpage. "How can I web scrape this page?" is too broad a question though - you would need to be specific in terms of what information you wanted to extract. – Shane Bishop Jan 28 '21 at 15:22
  • yes I got that info but it looks like computer name env variable info is only present for windows host and not for all – Check_mate Jan 28 '21 at 20:15

0 Answers0