I need to list all unused plugins in jenkins
How can we list all unused plugins in Jenkins "tried installing Plugin-usage plugin but no detailed information is available.
Related
I am trying to install the plugin Git Forensics plugin in Jenkins for visualization of Git commits for last six months but it is not installing all the dependent plugins. Tried multiple times.
Since there is no obvious issue regarding Git Forensics Jenkins plugin issues, check:
your Jenkins version
Your Jenkins plugin page to see if there is any incompatibility warning regarding the plugin itself
Your Jenkins logs
The idea is to check if the installation process leaves any trace which could explain what is missing.
I am trying to configure global build discard option in Cloudbees jenkins using groovy, For now, iam manually configuring global build discard in configure system..
But i couldnt find enough documents with the groovy.I could see scripts only for fetching the list of jenkins jobs and adding build discard property in the pipeline.
Cloudbees recommends this to run build discarder,
ExtensionList.lookupSingelton(BackgroundGlobalBuildDiscarder.class)doRun()
Dont see Groovy home and path to groovy installation in my jenkins. Jenkins version is 2.77.
Any reason?
Since Jenkins 2.x all the tool configurations (Groovy,Maven, Ant, Gradle and even the JDK) under the "Global Tools" entry in Jenkins administration (Manage Jenkins).
I have 2000 plus jobs in my dev-jenkins,I want to remove inactive job older than 6 months in Jenkins and also there workspace which is present on different slave.
Jenkins version using- 1.580.3
Thanks in advance.
Ayush
There are no official solution to do that (= plugins or native Jenkins functionality).
You can find a Groovy script here which delete the inactive workspaces:
http://jenkins-ci.361315.n4.nabble.com/automated-deletion-of-workspaces-td3799739.html
Another Groovy script to clean the workspaces (to be updated because it's actually checking the remaining free space):
https://gist.github.com/rb2k/8372402
You can schedule a maintenance job on all your slaves to launch on of these two scripts.
There is also the Jenkins Workspace Cleanup plugin which can clean the workspace before or after the build.
I'd like to suggest the plugin to 'shelve' the unused job, so you can restore in future:
https://wiki.jenkins-ci.org/display/JENKINS/Shelve+Project+Plugin
Is it possible to install plugins to a Jenkins Slave Node? I need to install a jenkins plugin to the slave node, but it should not be added to the master node.
Plugins can be installed only on master. I don't think plugins could be installed slave specific in Jenkins.
May be if you share your purpose of installing it in Slave node, we may think about the possibilities.
To my knowledge, It is pointless to installing plugins as slave specific.
Thanks,
Madhan