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
# aligns the '=>' to be accepted by our puppet-lint. The indentation is very | |
# specific to our source so will have to be adjusted to other files. | |
# The "29" in the awk printf is the length of the longest plugin name, so all | |
# other entries are aligned with it. You can get it using "wc -c <<<(longest-plugin-name)" | |
java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar \ | |
-s http://localhost list-plugins | \ | |
tr -d '()' | \ # get rid of versions in parenthesis, perhaps available upgrades | |
sort | \ | |
awk '{ printf " \047%s\047%*s=> {\n version => \047%s\047,\n },\n", $1, 29-length($1), "", $NF }' |