summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-09-16 10:59:39 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-09-16 10:59:39 -0400
commitb29f79324d972b74cdae89e0467e9ba7c28f7edc (patch)
treeece1eb0d01a9543d1adb41ec8f4508c92e319256
parent58ec88cea5288c0b6a15b65d602bdb46ef877996 (diff)
downloadbuild_tools-b29f79324d972b74cdae89e0467e9ba7c28f7edc.zip
build_tools-b29f79324d972b74cdae89e0467e9ba7c28f7edc.tar.gz
build_tools-b29f79324d972b74cdae89e0467e9ba7c28f7edc.tar.xz
Attach the mock build log on mock failure
-rwxr-xr-xsssd-nightly.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/sssd-nightly.sh b/sssd-nightly.sh
index 90f52af..488547a 100755
--- a/sssd-nightly.sh
+++ b/sssd-nightly.sh
@@ -52,9 +52,11 @@ make srpms >> $LOGFILE 2>&1 || finish 3
cd rpmbuild/SRPMS
echo "===== BUILDING FEDORA 11 i586 =====" >> $LOGFILE
-mock -r fedora-11-i386 sssd-$rpmversion.fc11.src.rpm >> $LOGFILE 2>&1 || finish 4
+mock -r fedora-11-i386 sssd-$rpmversion.fc11.src.rpm >> $LOGFILE 2>&1 || \
+ cat /var/lib/mock/fedora-11-i386/result/build.log >> $LOGFILE && finish 4
echo "===== BUILDING FEDORA 11 x86_64 =====" >> $LOGFILE
-mock -r fedora-11-x86_64 sssd-$rpmversion.fc11.src.rpm >> $LOGFILE 2>&1 || finish 5
+mock -r fedora-11-x86_64 sssd-$rpmversion.fc11.src.rpm >> $LOGFILE 2>&1 || \
+ cat /var/lib/mock/fedora-11-x86_64/result/build.log >> $LOGFILE && finish 5
echo "===== CREATING FEDORA 11 i586 YUM REPOSITORY ====" >> $LOGFILE
mkdir -p /local/sgallagh/repos/f11/SRPMS
@@ -110,11 +112,11 @@ echo "===== BUILDING RHEL 5 i386 =====" >> $LOGFILE
cd /local/sgallagh/sssd-$datestamp/rpmbuild/SRPMS
mv sssd-$rpmversion.fc11.src.rpm \
sssd-$rpmversion.el5.src.rpm
-mock -r epel-5-i386 sssd-$rpmversion.el5.src.rpm >> $LOGFILE 2>&1 || finish 6
-
+mock -r epel-5-i386 sssd-$rpmversion.el5.src.rpm >> $LOGFILE 2>&1 || \
+ cat /var/lib/mock/epel-5-i386/result/build.log >> $LOGFILE && finish 6
echo "===== BUILDING RHEL 5 x86_64 =====" >> $LOGFILE
-mock -r epel-5-x86_64 sssd-$rpmversion.el5.src.rpm >> $LOGFILE 2>&1 || finish 7
-
+mock -r epel-5-x86_64 sssd-$rpmversion.el5.src.rpm >> $LOGFILE 2>&1 || \
+ cat /var/lib/mock/epel-5-x86_64/result/build.log >> $LOGFILE && finish 7
echo "===== CREATING RHEL 5 i586 YUM REPOSITORY ====" >> $LOGFILE
mkdir -p /local/sgallagh/repos/rhel5/SRPMS