Skip to content

Instantly share code, notes, and snippets.

@amoralej
Last active September 29, 2016 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amoralej/a9ac7bc88220fe8c5544f4ddfe215dc7 to your computer and use it in GitHub Desktop.
Save amoralej/a9ac7bc88220fe8c5544f4ddfe215dc7 to your computer and use it in GitHub Desktop.
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