.. code-block:: bash
- git clone --recursive https://git.opendaylight.org/gerrit/releng/autorelease
- cd autorelease
- git submodule update --init
- git review -s
- git submodule foreach 'git review -s'
+ export RELEASE=Nitrogen-SR1
+ export STREAM=${RELEASE//-*}
+ export BRANCH=origin/stable/${STREAM,,}
+
+ git clone --recursive https://git.opendaylight.org/gerrit/releng/autorelease
+ cd autorelease
+ git fetch origin
+
+ # Ensure we are on the right branch. Note that we are wiping out all
+ # modifications in the repo so backup unsaved changes before doing this.
+ git checkout -f
+ git checkout ${BRANCH,,}
+ git clean -xdff
+ git submodule update --init
+
+ # Ensure git review is setup
+ git review -s
+ git submodule foreach 'git review -s'
- Make sure the latest lftools is installed
**(Release Engineering Team)**
.. code-block:: bash
- export RELEASE=Beryllium-SR4
- export STREAM=${RELEASE//-*}
export BUILD_NUM=55
export PATCH_URL="https://logs.opendaylight.org/releng/jenkins092/autorelease-release-${STREAM,,}/${BUILD_NUM}/patches.tar.gz"
./scripts/release-tags.sh "${RELEASE}" /tmp/patches "$PATCH_URL"
.. code-block:: bash
git checkout stable/${BRANCH,,}
- ./scripts/release-notes-generator.sh Carbon-SR2
+ ./scripts/release-notes-generator.sh ${RELEASE}
A `release-notes.rst` will be generated in the working directory.