X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=server%2Fpost-receive-hudson;h=f199d17dc76403acc2687396f8644c4b44e4a22a;hb=f14b5840d02ec82d7576a6c71137dfe537b85c6c;hp=161568ba551e097fd618369d79a706d26d43b16b;hpb=fb218703763e0066577d8a4b023568c208117bee;p=git-central.git diff --git a/server/post-receive-hudson b/server/post-receive-hudson index 161568b..f199d17 100644 --- a/server/post-receive-hudson +++ b/server/post-receive-hudson @@ -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 @@ -31,8 +36,6 @@ while read oldrev newrev refname ; do branch_config="${branch_config//$USER_EMAIL }" fi - echo "$branch_config" > branch_config.txt - # wget "http://cbas1:8080/hudson/createItem?name=${short_refname}&mode=copyJob&from=stable" > wget.txt wget --header "Content-Type: text/xml" --post-data="$branch_config" -O - "http://cbas1:8080/hudson/createItem?name=${short_refname}" >/dev/null 2>/dev/null if [ $? -ne 0 ] ; then