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
This commit is contained in:
Douglas Mendizabal 2014-01-25 10:39:31 -06:00 committed by Gerrit Code Review
parent e02ff89007
commit e15ba877b0
1 changed files with 1 additions and 1 deletions

View File

@ -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