Created
October 19, 2016 22:02
-
-
Save tknerr/e1f21f794364186de58695c10c918df1 to your computer and use it in GitHub Desktop.
List the installed jenkins plugins @ version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl 'http://localhost:8080/pluginManager/api/xml?depth=1&xpath=/*/*/shortName|/*/*/version&wrapper=plugins' | perl -pe 's/.*?<shortName>([\w-]+).*?<version>([^<]+)()(<\/\w+>)+/\1@\2\n/g' | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment