This should not be in git
This commit is contained in:
@ -1,52 +0,0 @@
|
||||
#!/bin/sh
|
||||
# /usr/local/etc/poudriere.d/hooks/bulk.sh
|
||||
|
||||
EMAIL_FROM=an@example.com
|
||||
EMAIL_TO=another@example.com
|
||||
|
||||
status="$1"
|
||||
shift
|
||||
|
||||
if [ "$status" = "start" ]; then
|
||||
mail_subject="[${MASTERNAME}] bulk started on `hostname`"
|
||||
|
||||
sendmail -f ${EMAIL_FROM} ${EMAIL_TO} << EOF
|
||||
To: ${EMAIL_TO}
|
||||
Subject: ${mail_subject}
|
||||
|
||||
Build URL: ${BUILD_URL}
|
||||
EOF
|
||||
|
||||
elif [ "$status" = "crashed" ]; then
|
||||
mail_subject="[${MASTERNAME}] bulk crashed on `hostname`"
|
||||
|
||||
sendmail -f ${EMAIL_FROM} ${EMAIL_TO} << EOF
|
||||
To: ${EMAIL_TO}
|
||||
Subject: ${mail_subject}
|
||||
|
||||
Build URL: ${BUILD_URL}
|
||||
EOF
|
||||
|
||||
elif [ "$status" = "done" ]; then
|
||||
n_built=$1
|
||||
n_failed=$2
|
||||
n_ignored=$3
|
||||
n_skipped=$4
|
||||
n_total=$((${n_built} + ${n_failed} + ${n_ignored} + ${n_skipped}))
|
||||
|
||||
mail_subject="[RELEASE - ${MASTERNAME}] bulk done on `hostname`"
|
||||
|
||||
sendmail -f ${EMAIL_FROM} ${EMAIL_TO} << EOF
|
||||
To: ${EMAIL_TO}
|
||||
Subject: ${mail_subject}
|
||||
|
||||
Build URL: ${BUILD_URL}
|
||||
Built: ${n_built}
|
||||
Failed: ${n_failed}
|
||||
Ignored: ${n_ignored}
|
||||
Skipped: ${n_skipped}
|
||||
EOF
|
||||
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@ -1,51 +0,0 @@
|
||||
#!/bin/sh
|
||||
# /usr/local/etc/poudriere.d/hooks/pkgbuild.sh
|
||||
|
||||
EMAIL_FROM=an@example.com
|
||||
EMAIL_TO=some@example.com
|
||||
# The failure email will snip out the middle of a build log to help
|
||||
# save BW. A URL is provided to view the full log
|
||||
# Set to how many header lines from the build to display
|
||||
HEADER_LINES=200
|
||||
# Set to how many footer lines from the build to display
|
||||
FOOTER_LINES=200
|
||||
|
||||
status="$1"
|
||||
port="$2"
|
||||
pkgname="$3"
|
||||
|
||||
if [ "$status" = "failed" ]; then
|
||||
failed_phase="$4"
|
||||
log="$5"
|
||||
maintainer=$(awk '/maintained by:/ {print $3}' ${log})
|
||||
ident=$(awk '/Makefile ident:/ {print $0}' ${log})
|
||||
last_committer=$(awk '/Makefile ident:/ {print $8}' ${log})
|
||||
mail_subject="[${MASTERNAME}] Build failed for ${pkgname} during ${failed_phase}"
|
||||
|
||||
log_lines=$(wc -l ${log}|awk '{print $1}')
|
||||
if [ ${log_lines} -lt $((${FOOTER_LINES} + ${HEADER_LINES})) ]; then
|
||||
# Log is short enough, just print it all
|
||||
awk_script='{print $0}'
|
||||
else
|
||||
# Trim out the middle of the log
|
||||
awk_script="NR < ${HEADER_LINES} || NR > $((${log_lines} - ${FOOTER_LINES})); NR == ${HEADER_LINES} { print \"<snip>\" }"
|
||||
fi
|
||||
|
||||
sendmail -f ${EMAIL_FROM} -t << EOF
|
||||
To: ${EMAIL_TO}
|
||||
Subject: ${mail_subject}
|
||||
|
||||
Maintainer: ${maintainer}
|
||||
Last committer: ${last_committer}@FreeBSD.org
|
||||
Ident: ${ident#Makefile ident: }
|
||||
Log URL: ${LOG_URL}/${pkgname}.log
|
||||
Build URL: ${BUILD_URL}
|
||||
Log:
|
||||
|
||||
$(awk "${awk_script}" ${log})
|
||||
EOF
|
||||
|
||||
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@ -1 +0,0 @@
|
||||
amd64
|
||||
@ -1 +0,0 @@
|
||||
zroot/poudriere/jails/120x64
|
||||
@ -1 +0,0 @@
|
||||
http
|
||||
@ -1 +0,0 @@
|
||||
/usr/local/poudriere/jails/120x64
|
||||
@ -1 +0,0 @@
|
||||
1698488466
|
||||
@ -1 +0,0 @@
|
||||
12.4-RELEASE-p6
|
||||
@ -1 +0,0 @@
|
||||
amd64
|
||||
@ -1 +0,0 @@
|
||||
zroot/poudriere/jails/130x64
|
||||
@ -1 +0,0 @@
|
||||
http
|
||||
@ -1 +0,0 @@
|
||||
/usr/local/poudriere/jails/130x64
|
||||
@ -1 +0,0 @@
|
||||
1698488482
|
||||
@ -1 +0,0 @@
|
||||
13.2-RELEASE-p4
|
||||
@ -1 +0,0 @@
|
||||
amd64
|
||||
@ -1 +0,0 @@
|
||||
zroot/poudriere/jails/140x64
|
||||
@ -1 +0,0 @@
|
||||
http
|
||||
@ -1 +0,0 @@
|
||||
/usr/local/poudriere/jails/140x64
|
||||
@ -1 +0,0 @@
|
||||
1699952100
|
||||
@ -1 +0,0 @@
|
||||
14.0-RELEASE
|
||||
@ -1 +0,0 @@
|
||||
riscv.riscv64
|
||||
@ -1 +0,0 @@
|
||||
zroot/poudriere/jails/14riscv64
|
||||
@ -1 +0,0 @@
|
||||
http
|
||||
@ -1 +0,0 @@
|
||||
/usr/local/poudriere/jails/14riscv64
|
||||
@ -1 +0,0 @@
|
||||
1699379673
|
||||
@ -1 +0,0 @@
|
||||
14.0-RC4
|
||||
@ -1 +0,0 @@
|
||||
amd64
|
||||
@ -1 +0,0 @@
|
||||
zroot/poudriere/jails/verisign
|
||||
@ -1 +0,0 @@
|
||||
http
|
||||
@ -1 +0,0 @@
|
||||
/usr/local/poudriere/jails/verisign
|
||||
@ -1 +0,0 @@
|
||||
1698489586
|
||||
@ -1 +0,0 @@
|
||||
13.2-RELEASE-p4
|
||||
@ -1 +0,0 @@
|
||||
1
|
||||
@ -1 +0,0 @@
|
||||
git+https
|
||||
@ -1 +0,0 @@
|
||||
/usr/local/poudriere/ports/default
|
||||
Reference in New Issue
Block a user