Skip to content
Browse files

Added openstack-repo support to rebuild_config_rpms.sh script

  • Loading branch information...
1 parent 156a6fd commit 7aee64ddf85d3939c3d9e36ba1d4ef29bbfe9149 @gd-jenkins gd-jenkins committed Jun 29, 2011
Showing with 13 additions and 3 deletions.
  1. +13 −3 rebuild_config_rpms.sh
View
16 rebuild_config_rpms.sh
@@ -4,6 +4,7 @@ if [ ! -d ".git" ]; then
echo "Need to run from Git repo openstack-rhel !"
exit -1
fi
+sources='/home/build/rpmbuild/SOURCES'
sandbox='/home/build/rpmbuild/RPMS/noarch'
branch=$(git branch|grep '*'|cut -f2 -d' ')
repo="/home/build/repo/$branch/openstack/"
@@ -12,6 +13,13 @@ if [[ "$host" != "je-cssn" ]]; then
echo "That script should be run only on Jenkins host!"
fi
+cp SOURCES/* $sources
+
+rpmbuild -ba openstack-repo.spec
+if [ "$?" != "0" ]; then
+ exit -1
+fi
+
rpmbuild -ba openstack-nova-cc-config.spec
if [ "$?" != "0" ]; then
exit -1
@@ -22,11 +30,13 @@ if [ "$?" != "0" ]; then
exit -1
fi
+./sign_rpm $sandbox/openstack-repo-*.rpm
./sign_rpm $sandbox/openstack-nova-cc-config-*.rpm
./sign_rpm $sandbox/openstack-nova-compute-config-*.rpm
-rm -f $repo/openstack-nova-cc-config*.rpm
-rm -f $repo/openstack-nova-compute-config*.rpm
+rm -f $repo/openstack-repo-*.rpm
+rm -f $repo/openstack-nova-cc-config-*.rpm
+rm -f $repo/openstack-nova-compute-config-*.rpm
-mv $sandbox/openstack-nova-cc-config-*.rpm $sandbox/openstack-nova-compute-config-*.rpm $repo
+mv $sandbox/openstack-repo-*.rpm $sandbox/openstack-nova-cc-config-*.rpm $sandbox/openstack-nova-compute-config-*.rpm $repo

0 comments on commit 7aee64d

Please sign in to comment.
Something went wrong with that request. Please try again.