Last active
September 29, 2016 11:47
-
-
Save amoralej/a9ac7bc88220fe8c5544f4ddfe215dc7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for p in puppet-{aodh,barbican,c{inder,eilometer},glance,gnocchi,heat,horizon,ironic,keystone,magnum,manila,mistral,neutron,nova,openstacklib,openstack_extras,oslo,ovn,sahara,swift,tempest,trove,zaqar} | |
do | |
PUPPET_MODULE=$(echo $p|sed 's/upstream: git:\/\/git.openstack.org\/openstack\///g') | |
echo $PUPPET_MODULE | |
if [ ! -d $PUPPET_MODULE ] | |
then | |
rdopkg clone $PUPPET_MODULE | |
fi | |
cd $PUPPET_MODULE | |
git remote update | |
git checkout newton-rdo | |
if [ $? != 0 ] | |
then | |
git checkout --track origin/newton-rdo | |
if [ $? -ne 0 ]; then | |
echo "ERROR checking out newton-rdo in $PUPPET_MODULE" | |
continue | |
fi | |
fi | |
git pull | |
TAG=`git describe --abbrev=0 upstream/stable/newton 2>/dev/null || git describe --abbrev=0 upstream/master` | |
echo n|rdopkg new-version -b $TAG | |
if [ $? -eq 0 ] | |
then | |
#echo ok | |
git review -t newton-rc2 | |
else | |
echo "ERROR runing rdopkg new-version for $PUPPET_MODULE" | |
fi | |
cd .. | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment