mirror of
https://git.rockylinux.org/rocky/pungi-rocky.git
synced 2024-11-22 04:41:33 +00:00
add email notifications for stable
This commit is contained in:
parent
095cf4f70d
commit
4c84445df5
27
scripts/produce-8-full.sh
Executable file
27
scripts/produce-8-full.sh
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source "$(dirname "$0")/common-8"
|
||||||
|
export PATH=/usr/sbin:/usr/bin:/root/bin
|
||||||
|
bash produce-8.sh
|
||||||
|
|
||||||
|
ret_val=$?
|
||||||
|
if [ "$ret_val" -ne 0 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
unset ret_val
|
||||||
|
|
||||||
|
bash updates-8-devel.sh
|
||||||
|
|
||||||
|
ret_val=$?
|
||||||
|
if [ "$ret_val" -ne 0 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
unset ret_val
|
||||||
|
|
||||||
|
bash updates-8-extras.sh
|
||||||
|
|
||||||
|
ret_val=$?
|
||||||
|
if [ "$ret_val" -ne 0 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
unset ret_val
|
@ -22,6 +22,16 @@ fi
|
|||||||
time $CMD
|
time $CMD
|
||||||
ret_val=$?
|
ret_val=$?
|
||||||
|
|
||||||
|
if [[ "$ret_val" != "0" ]]; then
|
||||||
|
if [[ "$MAILNOTIF" == "yes" ]]; then
|
||||||
|
echo "This is a notification that a recent stable $SHORT compose failed on $(hostname)" | mutt -e "set from=\"$FROM\"" \
|
||||||
|
-e 'set envelope_from=yes' \
|
||||||
|
-s "Compose $NEWCOMPOSE_ID failed (for Rocky Linux $REVISION)" \
|
||||||
|
releng@rockylinux.org
|
||||||
|
fi
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$ret_val" -eq 0 ]; then
|
if [ "$ret_val" -eq 0 ]; then
|
||||||
pushd "${TARGET_DIR}/latest-Rocky-$SHORT-8/compose/$SHORT" || { echo "Could not switch."; exit 1; }
|
pushd "${TARGET_DIR}/latest-Rocky-$SHORT-8/compose/$SHORT" || { echo "Could not switch."; exit 1; }
|
||||||
if [ -d "i386" ]; then
|
if [ -d "i386" ]; then
|
||||||
|
@ -17,3 +17,14 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
time $CMD
|
time $CMD
|
||||||
|
ret_val=$?
|
||||||
|
|
||||||
|
if [[ "$ret_val" != "0" ]]; then
|
||||||
|
if [[ "$MAILNOTIF" == "yes" ]]; then
|
||||||
|
echo "This is a notification that a recent stable $SHORT compose failed on $(hostname)" | mutt -e "set from=\"$FROM\"" \
|
||||||
|
-e 'set envelope_from=yes' \
|
||||||
|
-s "Compose $NEWCOMPOSE_ID failed (for Rocky Linux $REVISION)" \
|
||||||
|
releng@rockylinux.org
|
||||||
|
fi
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
27
scripts/updates-8-full.sh
Executable file
27
scripts/updates-8-full.sh
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source "$(dirname "$0")/common-8"
|
||||||
|
export PATH=/usr/sbin:/usr/bin:/root/bin
|
||||||
|
bash updates-8.sh
|
||||||
|
|
||||||
|
ret_val=$?
|
||||||
|
if [ "$ret_val" -ne 0 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
unset ret_val
|
||||||
|
|
||||||
|
bash updates-8-devel.sh
|
||||||
|
|
||||||
|
ret_val=$?
|
||||||
|
if [ "$ret_val" -ne 0 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
unset ret_val
|
||||||
|
|
||||||
|
bash updates-8-extras.sh
|
||||||
|
|
||||||
|
ret_val=$?
|
||||||
|
if [ "$ret_val" -ne 0 ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
unset ret_val
|
Loading…
Reference in New Issue
Block a user