deforaos-git-hook: do not queue unavailable jobs

This commit is contained in:
Pierre Pronchery 2022-04-12 19:07:52 +02:00
parent d68ac0e3c5
commit 82e91d8eaf

View File

@ -76,7 +76,10 @@ _jobs_branch()
if [ "$branch" = "master" -a -n "$JOBS_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
#warn if the job is not available #warn if the job is not available
[ -x "$job" ] || _error "$job: Job not available" if [ ! -x "$job" ]; then
_error "$job: Job not available"
continue
fi
$DEFORAOS_JOBS add "$job $repository" || res=2 $DEFORAOS_JOBS add "$job $repository" || res=2
done done
fi fi