You can use something like the following one

$ curl 
'http://admin:token@JENKINS_URL:8080/pluginManager/api/json?depth=1&?xpath=/*/*shortName|/*/*/version'
 
| python -mjson.tool

Or simple python script

import requests

response = 
requests.get('http://admin:token@JENKINS_URL:8080/pluginManager/api/json?depth=1&?xpath=/*/*shortName|/*/*/version')
data = response.json()['plugins']

for plugin in data:
    print "%s:%s" % (plugin["shortName"], plugin["version"])

It will print something like the following
momentjs:1.1.1
build-pipeline-plugin:1.5.4
pipeline-input-step:2.1
branch-api:1.10
workflow-durable-task-step:2.4



> Hi , I need to check what are plugins installed on a specific jenkins 
> server. I tried to use cli but it needs jnlp port which I cannot configure 
> as i donot have permission. Is there a way I can find out this information. 
> I checked config.xml but it do not mentions the list of plugins.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/70ade996-a284-42fc-9340-e86e5136ba84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to