]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
print out build log if mock fails 616/head
authorGregory Meno <gmeno@redhat.com>
Fri, 13 Jan 2017 02:23:26 +0000 (18:23 -0800)
committerGregory Meno <gmeno@redhat.com>
Fri, 13 Jan 2017 02:23:26 +0000 (18:23 -0800)
Signed-off-by: Gregory Meno <gmeno@redhat.com>
calamari/build/build_rpm

index 494609dc1be6ccb8178799ee2717ba3ba729b610..c075ee5c55e2b4edb5f4283a34f061413889a0ec 100644 (file)
@@ -56,7 +56,7 @@ SRPM=$(readlink -f *.src.rpm)
 
 ## Build the binaries with mock
 echo "Building RPMs"
-sudo mock -r ${MOCK_TARGET}-${RELEASE}-${ARCH} --resultdir=./dist/rpm/ ${SRPM}
+sudo mock -r ${MOCK_TARGET}-${RELEASE}-${ARCH} --resultdir=./dist/rpm/ ${SRPM} || cat ./dist/rpm/build.log
 
 
 ## Upload the created RPMs to chacra