Skip to content

DatasiteLabs/hook-auditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hook-auditor

auditor plugin to watch the many github plugins in jenkins and debug

pre-requisites

java 8

# sdk man
sdk use java 8.0.181-zulu

ngrok

located in ./tools

  1. add auth token to ngrok before running
  2. 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.yml

running

mvn install -DskipTests
mvn hpi:run

updating versions of plugins

go to: http://localhost:8080/script or your jenkins instance script console

  1. run this script
  2. 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 ""
}

About

auditor plugin to watch the many github plugins in jenkins and debug

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •