jenkins: Print build.log after root.log

This commit is contained in:
Mikolaj Izdebski 2015-05-06 19:04:49 +02:00
parent 76bcdbea0f
commit a99758918b

View File

@ -27,7 +27,7 @@ rpmbuild -bs --clean --define "_topdir `pwd`" --define "_sourcedir `pwd`" xmvn.s
# build RPM with custom mock config # build RPM with custom mock config
rm -Rf ${resultdir}/* rm -Rf ${resultdir}/*
# print root.log and build.log in case of failure # print root.log and build.log in case of failure
trap "cat ${resultdir}/*.log || :" 0 trap "cat ${resultdir}/{root,build}.log || :" 0
mock -r ../..$PWD/fedora-rawhide-x86_64 SRPMS/*.src.rpm mock -r ../..$PWD/fedora-rawhide-x86_64 SRPMS/*.src.rpm
# remove unneeded stuff # remove unneeded stuff