Condition the hook and job processing
This commit is contained in:
parent
d94e8aa481
commit
268e26a468
|
@ -59,7 +59,7 @@ _jobs_branch()
|
||||||
branch="$1"
|
branch="$1"
|
||||||
repository="$2"
|
repository="$2"
|
||||||
|
|
||||||
if [ "$branch" = "master" ]; then
|
if [ "$branch" = "master" -a -n "$JOBS_BRANCH_MASTER" ]; then
|
||||||
for job in $JOBS_BRANCH_MASTER; do
|
for job in $JOBS_BRANCH_MASTER; do
|
||||||
$JOBS add "$job $repository"
|
$JOBS add "$job $repository"
|
||||||
done
|
done
|
||||||
|
@ -85,7 +85,7 @@ while read line; do
|
||||||
done
|
done
|
||||||
#chain the hooks
|
#chain the hooks
|
||||||
ret=0
|
ret=0
|
||||||
for hook in $HOOKS; do
|
[ -n "$HOOKS" ] && for hook in $HOOKS; do
|
||||||
"_hook_$hook" < "$tmpfile" || ret=2
|
"_hook_$hook" < "$tmpfile" || ret=2
|
||||||
done
|
done
|
||||||
#clean up
|
#clean up
|
||||||
|
|
Loading…
Reference in New Issue
Block a user