[particles] add default buildfail script
This commit is contained in:
parent
89b721296d
commit
4fe9c146df
37
hooks/buildfail.sh
Executable file
37
hooks/buildfail.sh
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# MATTTER_PORTAGE_REPOSITORY = portage repository
|
||||||
|
# MATTER_PORTAGE_FAILED_PACKAGE_NAME = CPV of failed package
|
||||||
|
|
||||||
|
DATE_DIR=$(date +%Y-%m-%d-%H:%M)
|
||||||
|
|
||||||
|
BUILD_LOG=$(echo -n "${MATTER_PORTAGE_BUILD_LOG_DIR}/${MATTER_PORTAGE_FAILED_PACKAGE_NAME}"*.log)
|
||||||
|
if [ -z "${BUILD_LOG}" ]; then
|
||||||
|
echo "cannot find build log, wtf??"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [ ! -f "${BUILD_LOG}" ]; then
|
||||||
|
echo "cannot find build log file"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
REMOTE_DIR="~/tinderbox/${DATE_DIR}/${MATTER_PORTAGE_FAILED_PACKAGE_NAME}"
|
||||||
|
|
||||||
|
echo "Uploading ${BUILD_LOG} to tinderbox.sabayon.org..."
|
||||||
|
ssh entropy@tinderbox.sabayon.org mkdir -p "${REMOTE_DIR}"
|
||||||
|
|
||||||
|
tmp_path=$(mktemp --suffix=.emerge.info.txt)
|
||||||
|
emerge --info =${MATTER_PORTAGE_FAILED_PACKAGE_NAME} > "${tmp_path}"
|
||||||
|
if [ "${?}" != "0" ]; then
|
||||||
|
rm "${tmp_path}"
|
||||||
|
exit ${?}
|
||||||
|
fi
|
||||||
|
chmod 640 "${tmp_path}"
|
||||||
|
scp "${tmp_path}" entropy@tinderbox.sabayon.org:"${REMOTE_DIR}"/
|
||||||
|
if [ "${?}" != "0" ]; then
|
||||||
|
rm "${tmp_path}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
rm "${tmp_path}"
|
||||||
|
scp "${BUILD_LOG}" entropy@tinderbox.sabayon.org:"${REMOTE_DIR}"/ || exit 1
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
@ -76,7 +76,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -71,7 +71,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -111,7 +111,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -209,7 +209,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -73,7 +73,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -152,7 +152,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -104,7 +104,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -99,7 +99,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -134,7 +134,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -146,7 +146,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -419,7 +419,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -108,7 +108,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -144,7 +144,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -248,7 +248,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -140,7 +140,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -94,7 +94,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -162,7 +162,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -87,7 +87,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -97,7 +97,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -118,7 +118,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -94,7 +94,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -1099,7 +1099,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -251,7 +251,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -660,7 +660,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -395,7 +395,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
@ -300,7 +300,7 @@ removed-useflags: yes
|
|||||||
# comes from
|
# comes from
|
||||||
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
# MATTER_PORTAGE_BUILD_LOG_DIR = directory containing all the build logs of
|
||||||
# the failed package
|
# the failed package
|
||||||
# buildfail: /home/fabio/repos/entropy/services/matter_examples/buildfail.sh
|
buildfail: /particles/hooks/buildfail.sh
|
||||||
|
|
||||||
# For more info regarding exported environment variables, please see:
|
# For more info regarding exported environment variables, please see:
|
||||||
# matter --help
|
# matter --help
|
||||||
|
Loading…
Reference in New Issue
Block a user