Skip to content

Instantly share code, notes, and snippets.

@batmat
Created September 13, 2012 10:28
Show Gist options
  • Save batmat/3713444 to your computer and use it in GitHub Desktop.
Save batmat/3713444 to your computer and use it in GitHub Desktop.
#!/bin/bash
repo=$1
rm -f ok.list ko.list
cd $repo
for i in `git tag`
do
echo "Trying to build $i tag"
git checkout $i
mvn -V -B -Dsurefire.useFile=false -U clean install
if [[ $? = 0 ]]; then
echo $i >> ../ok.list
else
echo $i >> ../ko.list
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment