Fix upgrade job on master to upgrade from 2024.1 to master
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-openstack_hosts/+/930272 Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_horizon/+/929695 Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_keystone/+/929691 Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-repo_server/+/929690 Change-Id: Ibb9e25b9e961354f04c2d84e048054ab29becbbd
This commit is contained in:
parent
1d3b04539f
commit
700e59186a
@ -65,7 +65,7 @@ if [[ "${ACTION}" =~ "upgrade" ]]; then
|
||||
# The branch prefix will also change from 'stable/' to 'unmaintained/'
|
||||
# in the future, so determine the branch prefix dynamically
|
||||
UPGRADE_ACTION_ARRAY=(${ACTION//_/ })
|
||||
export UPGRADE_SOURCE_RELEASE=${UPGRADE_ACTION_ARRAY[1]:-'2023.2'}
|
||||
export UPGRADE_SOURCE_RELEASE=${UPGRADE_ACTION_ARRAY[1]:-'2024.1'}
|
||||
export UPGRADE_SOURCE_BRANCH_PREFIX=$(git branch -r --list 'origin/*' | grep $UPGRADE_SOURCE_RELEASE | sort | tail -n 1 | cut -d '/' -f 2)
|
||||
export UPGRADE_SOURCE_BRANCH=${UPGRADE_SOURCE_BRANCH:-$UPGRADE_SOURCE_BRANCH_PREFIX/$UPGRADE_SOURCE_RELEASE}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user