Skip to content

Instantly share code, notes, and snippets.

@jollychang
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jollychang/0840dead85740b1a6c17 to your computer and use it in GitHub Desktop.
Save jollychang/0840dead85740b1a6c17 to your computer and use it in GitHub Desktop.
jenkins_check_if_buildout_update.sh
# https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin#GitPlugin-AdvancedFeatures
# http://buildout.readthedocs.org/en/latest/docs/
is_buildout_change=`git diff --stat $GIT_COMMIT $GIT_PREVIOUS_COMMIT | grep -ci "setup.py\|buildout.cfg"` || true
if [ $is_buildout_change -ne 0 ]; then
if [ ! -f bin/buildout ]; then
python bootstrap.py
fi
bin/buildout -vvvn;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment