Skip to content

Instantly share code, notes, and snippets.

@hgomez
Last active May 5, 2016 20:32
Show Gist options
  • Select an option

  • Save hgomez/139de9b0e0fb4bab000d to your computer and use it in GitHub Desktop.

Select an option

Save hgomez/139de9b0e0fb4bab000d to your computer and use it in GitHub Desktop.
Get Jenkins Plugin from command line

Let's use Jenkins XML API and xmlstartlet to get Jenkins Plugins list :

Get script :

curl -L https://raw.githubusercontent.com/hgomez/devops-incubator/master/forge-tricks/get-jenkins-plugins.sh -o get-jenkins-plugins.sh

Make it runable :

chmod 755 get-jenkins-plugins.sh

Exec script and provide jenkins base url :

get-jenkins-plugins.sh --url http://myjenkins.mycorp.org

Result is a sort list of plugin with version :

analysis-core:1.57
ant:1.2
antisamy-markup-formatter:1.1
audit-trail:2.0
build-timeout:1.14
changelog-history:1.3
claim:2.3
cluster-stats:0.4.4
config-file-provider:2.7.4
configurationslicing:1.38.3
console-column-plugin:1.5
credentials:1.13
cvs:2.12
....

Enjoy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment