How to disable Plugin Management from Web GUI

19 views
Skip to first unread message

Li Z

unread,
Aug 30, 2017, 2:02:34 AM8/30/17
to Jenkins Users
Currently, we are deploying Jenkins server using Jenkins Docker image and extending the image by adding some needed plugin using Dockerfile. 

We do not want Jenkins' users (admins), manually install plugins from Web GUI. 

Is possible to disable and remove Manage Plugin link from Jenkins Web GUI?

Thanks
Manage Jenkins [Jenkins].jpg

Stephen Connolly

unread,
Aug 30, 2017, 4:43:07 AM8/30/17
to jenkins...@googlegroups.com
You could remove the jenkins.management.PluginsLink extension from the ExtensionList.lookup(hudson.model.ManagementLink.class) using an init.groovy script... but it is unclear to me whether that would have unintended side-effects...

something like

def list = ExtensionList.lookup(hudson.model.ManagementLink.class)
list.remove(list.get(jenkins.management.PluginsLink.class))

YMMV

--
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 jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0515e112-c0d1-4a92-acfe-795eac0da477%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Li Z

unread,
Aug 30, 2017, 1:12:11 PM8/30/17
to Jenkins Users
Thanks Stephen! It works. I will test to see what kind of side-effects it will have. 
Reply all
Reply to author
Forward
0 new messages