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
archive-artifacts: >
**/*.prop
**/*.log
- patches/**
- patches.tar.gz
- error.log.gz
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
+# This script parses the console log to discover which project has caused a
+# build failure and notify the project as appropriate.
NEWLINE=$'\n'
RELEASE_EMAIL="release@lists.opendaylight.org"
ARCHIVES_DIR="$JENKINS_HOSTNAME/$JOB_NAME/$BUILD_NUMBER"
CONSOLE_LOG="/tmp/autorelease-build.log"
STREAM=${JOB_NAME#*-*e-}
-ERROR_LOG="$WORKSPACE/error.log.gz"
+ERROR_LOG="$WORKSPACE/archives/error.log.gz"
-# get console logs
-wget --no-verbose -O "$CONSOLE_LOG" "${BUILD_URL}consoleText"
+wget -nv -O "$CONSOLE_LOG" "${BUILD_URL}consoleText"
# TODO: This section is still required since some of the projects use
# description. Remove this section when the reactor info is more consistant.
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)
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
unzip packer_0.12.2_linux_amd64.zip -d /usr/local/bin/
# rename packer to avoid conflict with binary in cracklib
mv /usr/local/bin/packer /usr/local/bin/packer.io
+
+# Check out quagga , compile and install for router functionalities
+echo "Installing the Quagga..."
+mkdir -p /tmp/build_quagga
+cd /tmp/build_quagga
+git clone https://github.com/6WIND/zrpcd.git
+cd zrpcd
+git checkout 20170731
+chmod a+x /tmp/build_quagga/zrpcd/pkgsrc/dev_compile_script.sh
+/tmp/build_quagga/zrpcd/pkgsrc/dev_compile_script.sh -d -b -t
+
+# Removing the build_quagga folder
+rm -rf /tmp/build_quagga/
# Install netaddr package which is needed by some custom mininet topologies
apt-get install python-netaddr
+
+# Check out quagga , compile and install for router functionalities
+echo "Installing the Quagga..."
+mkdir -p /tmp/build_quagga
+cd /tmp/build_quagga
+git clone https://github.com/6WIND/zrpcd.git
+cd zrpcd
+git checkout 20170731
+chmod a+x /tmp/build_quagga/zrpcd/pkgsrc/dev_compile_script.sh
+/tmp/build_quagga/zrpcd/pkgsrc/dev_compile_script.sh -d -b -t
+
+# Removing the build_quagga folder
+rm -rf /tmp/build_quagga/