diff options
author | Tibor Frank <tifrank@cisco.com> | 2019-09-13 10:50:35 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2019-09-13 10:52:34 +0200 |
commit | 19c0afa8ef1c174595469ecaa16cc704c74b2d81 (patch) | |
tree | 432ce668e219fb8565f1f1c16274c0c4a739101d /jjb/csit | |
parent | f948be88a2c9bf4eccb339464afb46489ff4d421 (diff) |
CSIT: Set default email body for trendnig job
- it is used in alerting
Change-Id: Ib1119f98f93ed8e058c7d1507dbcdaedbb26cae3
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'jjb/csit')
-rw-r--r-- | jjb/csit/include-raw-csit-cpta.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/jjb/csit/include-raw-csit-cpta.sh b/jjb/csit/include-raw-csit-cpta.sh index e3a118451..d75ba2686 100644 --- a/jjb/csit/include-raw-csit-cpta.sh +++ b/jjb/csit/include-raw-csit-cpta.sh @@ -9,9 +9,15 @@ set -xe -o pipefail [ "${SECONDARY_BUILD_DIR}" ] || SECONDARY_BUILD_DIR="${DOC_DIR}_new/_build" [ "${SITE_DIR}" ] || SITE_DIR="build-root/docs/deploy-site" [ "${RESOURCES_DIR}" ] || RESOURCES_DIR="${SITE_DIR}/src/site/resources/trending" -[ "${SECONDARY_RESOURCES_DIR}" ] || SECONDARY_RESOURCES_DIR="${RESOURCES_DIR}/new" +[ "${STATIC_VPP_DIR}" ] || STATIC_VPP_DIR="${RESOURCES_DIR}/_static/vpp" [ "${MVN}" ] || MVN="/opt/apache/maven/bin/mvn" +# Create a text file with email body in case the build fails: +cd "${WORKSPACE}" +mkdir -p "${STATIC_VPP_DIR}" +EMAIL_BODY = "ERROR: The build number ${BUILD_NUMBER} of the job ${JOB_NAME} failed. For more information see: ${BUILD_URL}" +echo "${EMAIL_BODY}" > "${STATIC_VPP_DIR}/trending-failed-tests.txt" + cd "${DOC_DIR}" chmod +x ./run_cpta.sh STATUS=$(./run_cpta.sh | tail -1) |