update the process and tools for adding release note links

Add a step to the release process to ensure that the note links are
pointing to the right pages, and update the tool used to do that so it
is more robust.

Change-Id: I7beb85f63212c4ca696c9012b673e4d1b2b6d453
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann
2016-09-22 16:48:58 -04:00
parent d15a5062cc
commit 98458056d2
2 changed files with 12 additions and 8 deletions

View File

@@ -197,15 +197,19 @@ need additional release candidates can submit the requests and mark
them WIP until actually ready, so the release team knows that more
candidates are coming.
1. Encourage liaisons to merge all translation patches.
1. Ensure that all projects that are publishing release notes have the
notes link included in their deliverable file. See
``tools/add_release_note_links.sh``.
2. When all translations and bug fixes are merged for a project,
2. Encourage liaisons to merge all translation patches.
3. When all translations and bug fixes are merged for a project,
prepare a new release candidate.
3. Ensure that the final release candidate for each project is
4. Ensure that the final release candidate for each project is
prepared at least one week before the final release date.
4. After final releases for release:cycle-with-intermediary projects
5. After final releases for release:cycle-with-intermediary projects
are tagged, create their stable branches.
Final Release

View File

@@ -38,14 +38,14 @@ function url_exists {
for filename in deliverables/$SERIES/*.yaml; do
deliverable=$(basename $filename .yaml)
echo -n $deliverable
if grep -q 'release-notes' $filename; then
echo " already linked"
continue
fi
url="http://docs.openstack.org/releasenotes/${deliverable}/${SERIES}.html"
if ! url_exists $url; then
echo " no release notes page at $url"
else
# Remove any existing links, since they might point to the
# "unreleased" page.
sed -i -e '/release-notes/d' $filename
# Add the link pointing to the series-specific page.
sed -i -e "/releases:/i \
release-notes: $url" $filename
echo