Skip to content

Commit f5dd9d0

Browse files
committed
build.sh: hook-up notify script at the end of the run, only called with branches
1 parent fe626ea commit f5dd9d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.sh

+6
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,12 @@ case "$ACTION" in
220220
# run post-build.d scripts
221221
post_build
222222

223+
# trigger result notifier on branches
224+
if [ -n "${CI_BUILD_BRANCH}" ]; then
225+
echo "--- Notify results on branch ${CI_BUILD_BRANCH}"
226+
python ${BASEDIR}/notify.py "${CI_BUILD_BRANCH}" --job-uid "${CI_JOB_UID}" --job-result ${RES} -f ${BASEDIR}/config.yml
227+
fi
228+
223229
exit $RES
224230
;;
225231
finalize)

0 commit comments

Comments
 (0)