;;
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
branch_config="${branch_config/<recipients>/<recipients>$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