Created
January 12, 2019 00:49
-
-
Save jonathanhle/c541f3eba4acf359bf3ede553237e020 to your computer and use it in GitHub Desktop.
Jenkins Plugin Licenses List
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
cd /var/lib/jenkins/plugins | |
for i in `ls -d */ | tr -d '/'` | |
do | |
echo ${i} | |
grep -hr '<version>' /var/lib/jenkins/plugins/${i}/META-INF/maven/ | head -n2 | tail -n1 | sed 's/[^0-9.]*//g' | |
grep -hr 'license' /var/lib/jenkins/plugins/${i}/META-INF/maven/ | grep -E '<name> | <url>' | sed -e 's/^ \+//g' | |
echo "" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment