Last active
November 15, 2015 21:50
-
-
Save batmat/ce4be73349ee243a9b9e to your computer and use it in GitHub Desktop.
Small scripts to generate Jenkins data about number of plugins per months since 2007
This file contains 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
# Quick & Dirty way to generate data for number of plugins per month | |
# after the .svg of installations per plugins available under stats.jenkinsci.org | |
# Get all the files | |
for year in $(seq 2007 2015) | |
do | |
for month in $(seq -w 1 12) | |
do | |
wget "http://stats.jenkins-ci.org/jenkins-stats/svg/$year$month-plugins.svg" | |
done | |
done | |
# Generate CSV | |
for i in 20*.svg | |
do | |
echo $(echo $i|cut -d- -f1|sed 's#\(20[0-9][0-9]\)\([0-9][0-9]\)#\1/\2#g')","$(cat $i | grep '</text' | wc -l) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment