Update branch checkout and u-c.txt for Octavia

This patch updates the branch name and upper constraints for the
amphora-agent in Octavia on stable branch creation.

Change-Id: I8eba64c886c187c8652f94735ca6153702203d17
This commit is contained in:
Carlos Goncalves 2020-02-05 18:54:42 +01:00
parent 2a6570399c
commit ade102e9be
1 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,9 @@ function update_upper_constraints {
fi
sed -i~ -e "s,{\(env:UPPER_CONSTRAINTS_FILE\)[^ ]*},{\1:$uc_url}," tox.ini
sed -i~ -e "s,{\(env:TOX_CONSTRAINTS_FILE\)[^ ]*},{\1:$uc_url}," tox.ini
# Octavia project specific
sed -i~ -e "s,\(https://opendev.org/openstack/octavia\).*,\1 ${branch}," elements/amphora-agent/source-repository-amphora-agent
sed -i~ -e "s,\(file /opt/upper-constraints.txt\) \(.*\),\1 ${uc_url}," elements/amphora-agent/source-repository-amphora-agent
if ! git diff --exit-code >/dev/null 2>&1 ; then
git add tox.ini
msg="Update TOX/UPPER_CONSTRAINTS_FILE for $branch"