Note
I haven't worked on this or used it for a very long time, there have been many improvements in how Jenkins processes Git hooks as well as plugin updates. I am archiving.
auditor plugin to watch the many github plugins in jenkins and debug
java 8
# sdk man
sdk use java 8.0.181-zulungrok
located in ./tools
- add auth token to ngrok before running
- get url from http://localhost:4040/ and add to jenkins url config after startup
./tools/ngrok start --all --config ~/.ngrok2/ngrok.yml --config tools/ngrok.ymlmvn install -DskipTests
mvn hpi:rungo to: http://localhost:8080/script or your jenkins instance script console
- run this script
- paste updates to pom.xml
println Jenkins.instance.getVersion()
def plugins = Jenkins.instance.pluginManager.plugins.toSorted()
// maven
plugins.each{
plugin ->
def attrs = plugin.getManifest().mainAttributes
// println "${plugin.getInfo().name},${plugin.getVersion()}, ${attrs.getValue('Group-Id')}"
println "<dependency>"
println "\t<groupId>${attrs.getValue('Group-Id')}</groupId>"
println "\t<artifactId>${plugin.getInfo().name}</artifactId>"
println "\t<version>${plugin.getVersion()}</version>"
println "</dependency>"
println ""
}