From e15ba877b09da746f0567b0341fbb327a5c938d4 Mon Sep 17 00:00:00 2001 From: Douglas Mendizabal Date: Sat, 25 Jan 2014 10:39:31 -0600 Subject: [PATCH] Set rpm %_topdir macro during build Set rpm %_topdir macro during build instead of globally for the build user so that more than one rpm project can be built on jenkins. Change-Id: If862119f39ab35ba0b5b5865949f1a9c6af3e70d --- rpmbuild/build_rpm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpmbuild/build_rpm.sh b/rpmbuild/build_rpm.sh index 08b1b34ff..8f6680729 100755 --- a/rpmbuild/build_rpm.sh +++ b/rpmbuild/build_rpm.sh @@ -9,5 +9,5 @@ echo "Building RPM version $BUILD_VERSION" cp "dist/barbican-$BUILD_VERSION.tar.gz" rpmbuild/SOURCES sed -e s/BUILD_VERSION/$BUILD_VERSION/g -i rpmbuild/SPECS/barbican.spec -rpmbuild -ba --sign rpmbuild/SPECS/barbican.spec +rpmbuild --define "_topdir $WORKSPACE/rpmbuild" -ba --sign rpmbuild/SPECS/barbican.spec popd