Last active
August 29, 2015 14:10
-
-
Save jollychang/0840dead85740b1a6c17 to your computer and use it in GitHub Desktop.
jenkins_check_if_buildout_update.sh
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
# 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