Chore: Update global-jjb to the latest v0.90.1
[releng/builder.git] / jjb / autorelease / generate-release-notes.sh
index deb7af3d602ac1e5d16dce31b11e0805bb4fff67..9aa5907328917b76a0b40f6bd15a3a6d94238fe6 100644 (file)
@@ -37,7 +37,6 @@ DOCS_DIR=$(mktemp -d)
 git clone -b "$GERRIT_BRANCH" https://git.opendaylight.org/gerrit/docs.git "$DOCS_DIR"
 cd "$DOCS_DIR" || exit 1
 cp "$WORKSPACE/release-notes.rst" "docs/release-notes/release-notes-${RELEASE,,}.rst"
-sed -i -e '$a     release-notes-'"${RELEASE,,}"'' "docs/release-notes/index.rst"
 git add docs/release-notes/
 
 GERRIT_COMMIT_MESSAGE="Update release notes for $RELEASE"
@@ -63,4 +62,4 @@ git config core.hooksPath "$(git rev-parse --show-toplevel)/.git/hooks"
 
 # Don't fail the build if this command fails because it's possible that there
 # is no changes since last update.
-git review --yes -t "$GERRIT_TOPIC" || true
+git review --yes -t "$GERRIT_TOPIC" "$GERRIT_BRANCH" || true