This should not be in git

This commit is contained in:
Xavier Beaudouin
2024-05-28 14:42:03 +02:00
parent 4f5f301a82
commit c0206926e6
35 changed files with 0 additions and 136 deletions

View File

@ -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

View File

@ -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

View File

@ -1 +0,0 @@
amd64

View File

@ -1 +0,0 @@
zroot/poudriere/jails/120x64

View File

@ -1 +0,0 @@
http

View File

@ -1 +0,0 @@
/usr/local/poudriere/jails/120x64

View File

@ -1 +0,0 @@
1698488466

View File

@ -1 +0,0 @@
12.4-RELEASE-p6

View File

@ -1 +0,0 @@
amd64

View File

@ -1 +0,0 @@
zroot/poudriere/jails/130x64

View File

@ -1 +0,0 @@
http

View File

@ -1 +0,0 @@
/usr/local/poudriere/jails/130x64

View File

@ -1 +0,0 @@
1698488482

View File

@ -1 +0,0 @@
13.2-RELEASE-p4

View File

@ -1 +0,0 @@
amd64

View File

@ -1 +0,0 @@
zroot/poudriere/jails/140x64

View File

@ -1 +0,0 @@
http

View File

@ -1 +0,0 @@
/usr/local/poudriere/jails/140x64

View File

@ -1 +0,0 @@
1699952100

View File

@ -1 +0,0 @@
14.0-RELEASE

View File

@ -1 +0,0 @@
riscv.riscv64

View File

@ -1 +0,0 @@
zroot/poudriere/jails/14riscv64

View File

@ -1 +0,0 @@
http

View File

@ -1 +0,0 @@
/usr/local/poudriere/jails/14riscv64

View File

@ -1 +0,0 @@
1699379673

View File

@ -1 +0,0 @@
14.0-RC4

View File

@ -1 +0,0 @@
amd64

View File

@ -1 +0,0 @@
zroot/poudriere/jails/verisign

View File

@ -1 +0,0 @@
http

View File

@ -1 +0,0 @@
/usr/local/poudriere/jails/verisign

View File

@ -1 +0,0 @@
1698489586

View File

@ -1 +0,0 @@
13.2-RELEASE-p4

View File

@ -1 +0,0 @@
git+https

View File

@ -1 +0,0 @@
/usr/local/poudriere/ports/default