]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-iscsi-ansible: fix mock chroot name 798/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 26 Jul 2017 17:37:54 +0000 (13:37 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 26 Jul 2017 17:37:54 +0000 (13:37 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
ceph-iscsi-config/build/build_rpm

index 0040262d0fd36f5945690dea09f7687e1bc48cec..7a22990cd17c4545c171ec5dc3a456aab78f4de9 100644 (file)
@@ -39,15 +39,10 @@ rpmbuild \
     --nodeps -bs $WORKSPACE/${PROJECT}.spec
 SRPM=$(readlink -f $WORKSPACE/dist/SRPMS/*.src.rpm)
 
-# mock config
-sudo head -n -1 /etc/mock/${MOCK_TARGET}-${RELEASE}-${ARCH}.cfg > ${PROJECT}.cfg
-# for debugging
-cat ${PROJECT}.cfg
-
 ## Build the binaries with mock
 echo "Building RPMs"
-sudo mock --verbose -r ${PROJECT}.cfg --scrub=all
-sudo mock --verbose -r ${PROJECT}.cfg --define "dist .el7" --resultdir=$WORKSPACE/dist/RPMS/ ${SRPM} || ( tail -n +1 $WORKSPACE/dist/RPMS/{root,build}.log && exit 1 )
+sudo mock --verbose -r ${MOCK_TARGET}-${RELEASE}-${ARCH} --scrub=all
+sudo mock --verbose -r ${MOCK_TARGET}-${RELEASE}-${ARCH} --define "dist .el7" --resultdir=$WORKSPACE/dist/RPMS/ ${SRPM} || ( tail -n +1 $WORKSPACE/dist/RPMS/{root,build}.log && exit 1 )
 
 ## Upload the created RPMs to chacra
 chacra_endpoint="${PROJECT}/${BRANCH}/${GIT_COMMIT}/${DISTRO}/${RELEASE}"