Merge "reproducer: cherry pick zuul changes"

This commit is contained in:
Zuul 2018-07-31 18:14:18 +00:00 committed by Gerrit Code Review
commit 4a4cca83df
1 changed files with 10 additions and 0 deletions

View File

@ -215,6 +215,16 @@ rm -rf tripleo-quickstart tripleo-quickstart-extras
git clone https://github.com/openstack/tripleo-quickstart
git clone https://github.com/openstack/tripleo-quickstart-extras
# cherry pick any zull changes affecting the cloned repos
for CR in ${ZUUL_CHANGES//^/ }; do
if [[ "${CR}" =~ ^openstack\/(tripleo\-quickstart|tripleo\-quickstart\-extras):[^:]+:(refs\/changes\/[[:digit:]]+\/[[:digit:]]+\/[[:digit:]]+) ]]; then
pushd ${WORKSPACE}/${BASH_REMATCH[1]} >/dev/null
git fetch https://git.openstack.org/openstack/${BASH_REMATCH[1]} ${BASH_REMATCH[2]}
git cherry-pick --allow-empty FETCH_HEAD
popd >/dev/null
fi
done
# Set up a virtual env if requested
if [ "$CREATE_VIRTUALENV" = "true" ]; then
check_installed virtualenv