How to get list of all the plugins installed on jenkins server without cli or without logging in ?

1,903 views
Skip to first unread message

user_dev

unread,
Aug 31, 2016, 12:08:04 PM8/31/16
to Jenkins Users

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.

Alex Domoradov

unread,
Sep 2, 2016, 4:29:50 AM9/2/16
to Jenkins Users
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
Reply all
Reply to author
Forward
0 new messages