4a5c70564b
With the new TC resolution the community replaces Extended Maintenance with Unmaintained status [1]. This patch introduces the new <series>-eom tag option in the transition_series.sh script. The tag applies at the tip of the given stable/<series> branch and the new unmaintained/<series> branch can be cut from that tag. [1] https://governance.openstack.org/tc/resolutions/20230724-unmaintained-branches.html Change-Id: Ia7064e36a2d92ef02f60b7371ebf3e4772abcc80
51 lines
1.2 KiB
Bash
Executable File
51 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Convenience wrapper transition a release cycle to its next stable
|
|
# phase.
|
|
|
|
TOOLSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
BASEDIR=$(dirname $TOOLSDIR)
|
|
#source $TOOLSDIR/functions
|
|
|
|
if [[ $# -lt 2 ]]; then
|
|
echo "Usage: $(basename $0) <series> <tag>"
|
|
echo ""
|
|
echo "<tag> either 'em', 'eom' or 'eol'"
|
|
exit 1
|
|
fi
|
|
|
|
series="$1"
|
|
tag="$2"
|
|
|
|
if [[ -z "$VIRTUAL_ENV" ]]; then
|
|
if [[ ! -d $BASEDIR/.tox/venv ]]; then
|
|
(cd $BASEDIR && tox -e venv --notest)
|
|
fi
|
|
source $BASEDIR/.tox/venv/bin/activate
|
|
fi
|
|
|
|
echo "Finding deliverables for $series series..."
|
|
deliverables=$(list-deliverables --series $series)
|
|
|
|
errors=()
|
|
for deliverable in $deliverables; do
|
|
echo "Adding $series-$tag tag for $deliverable..."
|
|
new-release $series $deliverable $tag
|
|
if [[ $? -ne 0 ]]; then
|
|
echo ""
|
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
echo "$deliverable failed to update"
|
|
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
echo ""
|
|
|
|
errors+=("$deliverable")
|
|
fi
|
|
done
|
|
|
|
if [[ ${#errors[@]} -ne 0 ]]; then
|
|
echo ""
|
|
echo "Errors adding tags to some deliverables. Check the following:"
|
|
echo " ${errors[@]}"
|
|
exit 1
|
|
fi
|