pythonpython-3.xjenkinspipjenkins-api

How to get nodes credentials using jenkinsapi


I need to get credentials information (which credentials used) for node. enter image description here

Currently I use this code that prints LOT of information but no credentials info that used for the node:

for node in get_server_instance().nodes._data['computer']:
    for i in node:
        print (i, node[i])

Is there any way to reach credentials ?

Thanks


Solution

  • The only way is run grep "credentials" */config.xml on the server inside nodes directory