]> git.droids-corp.org - git-central.git/commitdiff
Add hooks.post-receive-hudson.ignored to skip making Hudson projects.
authorStephen Haberman <stephen@exigencecorp.com>
Tue, 21 Oct 2008 21:30:42 +0000 (16:30 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Tue, 21 Oct 2008 21:30:42 +0000 (16:30 -0500)
server/post-receive-hudson

index 161568ba551e097fd618369d79a706d26d43b16b..9219878752fa563e3718f620df615e22bfdaeb8d 100644 (file)
@@ -16,6 +16,11 @@ while read oldrev newrev refname ; do
                        ;;
        esac
 
+       ignored=" $(git config hooks.post-receive-hudson.ignored) "
+       if [[ $ignored =~ " $short_refname " ]] ; then
+               exit 0
+       fi
+
        branch_config=$(wget -O - http://cbas1:8080/hudson/job/${short_refname}/config.xml 2>/dev/null)
        if [ $? -ne 0 ] ; then
                # Create the job