Is there any way to find it programmatically? I need this as part of an automatic start; Thus, this would be very useful if there is an existing remote API call that can give this.
You don’t need to parse HTML - most Hudson pages can be turned into API calls by adding a URL suffix, for example.
Make GET calls:
http: // hudson: 8080 / computer / api / json
switch json for xml or python if you prefer json
if you use api suffix only, you will get a short general api help page
Groovy script to get all computers:
def jenkins = Jenkins.instance def computers = jenkins.computers computers.each{ println "${it.displayName} ${it.hostName}" }
http://hudson:8080/computer/
Source: https://habr.com/ru/post/1753674/More articles:SharePoint Site Collection: Relationship with DB WSS_Content - databaseDisplay combobox list when getting focus (vb.net) - vb.netSQL validation in IntelliJ IDEA: how to disable it? - javaWidespread Weblogic deployment during development (such as WSSD / RAD) - eclipseWhy with PHP hundreds of DB connections do not matter ... but in a C ++ application they do? - c ++How to make a template type work in this case? - c ++какое решение выбрать для лучшей производительности и почему? - performanceHow can I show the problem marker correctly? It Does Not Display Text Editor and View Issues - eclipseUnclear JavaScript code in index.php / index.html files - javascriptHow to display an error sign in a package when the package has incorrect information? - eclipseAll Articles