default: '{release-tag}'
description: "The Release train tag to use eg. Beryllium-SR1"
- - parameter:
- name: autorelease-release-branch
- parameters:
- - string:
- name: RELEASE_BRANCH
- default: '{release-branch}'
- description: "The Release train branch to base build off eg. stable/beryllium"
-
- wrapper:
name: autorelease-build-timeout
wrappers:
fi
- publisher:
- # include-raw-autorelease-notify-build-failure.sh searches console log for
- # failures and emails the status to the release mailing list.
+ # Search console log for failures and email status to the release mailing list.
name: opendaylight-infra-notify-status
publishers:
- postbuildscript:
builders:
- - shell: !include-raw: include-raw-autorelease-notify-build-failure.sh
- script-only-if-succeeded: 'False'
- script-only-if-failed: 'True'
+ - shell: !include-raw: notify-build-failure.sh
+ script-only-if-succeeded: false
+ script-only-if-failed: true
# 4) Create tarball for distribution.
# RELEASE_TAG=Beryllium-SR1 # Example
- # RELEASE_BRANCH=stable/beryllium # Example
# Set release tag as $STREAM, when no release tag is passed
RELEASE_TAG="${RELEASE_TAG:-${STREAM^}}"
RELEASE_TAG="${RELEASE_TAG^}"
# Directory to put git format-patches
-PATCH_DIR="$WORKSPACE/patches"
+PATCH_DIR="$WORKSPACE/archives/patches"
+mkdir -p "$PATCH_DIR"
echo "$RELEASE_TAG"
# Remove this case statement when Carbon is no longer supported.
git submodule foreach "git commit -am \"Release $RELEASE_TAG\" || true"
git commit -am "Release $RELEASE_TAG"
-mkdir patches
# TODO: Fix this workaround so that scripts will ensure that taglist.log exists and archived.
mv taglist.log "$PATCH_DIR" || true
modules=$(xmlstarlet sel -N x=http://maven.apache.org/POM/4.0.0 -t -m '//x:modules' -v '//x:module' pom.xml)
for module in $modules; do
pushd "$module"
- git format-patch --stdout "origin/$RELEASE_BRANCH" > "$PATCH_DIR/${module//\//-}.patch"
+ git format-patch --stdout "origin/$BRANCH" > "$PATCH_DIR/${module//\//-}.patch"
git bundle create "$PATCH_DIR/${module//\//-}.bundle" "origin/master..HEAD"
popd
done
-tar cvzf patches.tar.gz -C "$WORKSPACE" patches
+tar cvzf "$PATCH_DIR/patches.tar.gz" -C "$WORKSPACE/archives" patches
rm "$PATCH_DIR"/*.bundle