git.droids-corp.org
/
git-central.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add hooks.post-receive-hudson.ignored to skip making Hudson projects.
[git-central.git]
/
server
/
post-receive-hudson
diff --git
a/server/post-receive-hudson
b/server/post-receive-hudson
index
161568b
..
9219878
100644
(file)
--- a/
server/post-receive-hudson
+++ b/
server/post-receive-hudson
@@
-16,6
+16,11
@@
while read oldrev newrev refname ; do
;;
esac
;;
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=$(wget -O - http://cbas1:8080/hudson/job/${short_refname}/config.xml 2>/dev/null)
if [ $? -ne 0 ] ; then
# Create the job