#!/bin/sh
# Git server hook: asks Jenkins to build after every push. HOOK_AUTH is base64 of user:api-token.
. /srv/git/hook.env
wget -q -O /dev/null --post-data= --header="Authorization: Basic $HOOK_AUTH" http://controller:8080/job/hooked/build \
  && echo "jenkins: build requested"
