Skip to content

Instantly share code, notes, and snippets.

@kwmsmith
kwmsmith / gist:1229277
Created September 20, 2011 14:41 — forked from srossross/gist:1188971
Template to build a stable jenkins build
#Clean everything like a brand new checkout
#Don't remove "jenkins-upstream" directory
if test -t 1 ; then
echo "stdout is a tty. Are you sure you want to continue? This operation will clean any uncommitted files."
read -p "CTRL-C to exit. Enter to continue:"
fi
git clean -dxf -e "jenkins-upstream"
#Unlink any current development d