diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2021-01-29 11:18:01 +0000 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2021-02-09 12:45:46 -0500 |
commit | 4ed95452d982886c61e28c11f8737fdde207de69 (patch) | |
tree | c6b48576888cf0186f664287f518d5a62b3608ef /jjb/scripts/vpp/build.sh | |
parent | c5aa4ab24d323f9b3ddb738b3997bff808083258 (diff) |
Add the core file decoding+cleanup for the verify jobs
- Add better failure reporting and dry run handling
for build scripts.
Change-Id: Ia19bae15ff4880b07094f4f665e5e00030eda27c
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'jjb/scripts/vpp/build.sh')
-rw-r--r-- | jjb/scripts/vpp/build.sh | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/jjb/scripts/vpp/build.sh b/jjb/scripts/vpp/build.sh index 148999cec..409061b4e 100644 --- a/jjb/scripts/vpp/build.sh +++ b/jjb/scripts/vpp/build.sh @@ -33,6 +33,9 @@ DRYRUN="${DRYRUN:-}" IS_CSIT_VPP_JOB="${IS_CSIT_VPP_JOB:-}" MAKE_PARALLEL_FLAGS="${MAKE_PARALLEL_FLAGS:-}" MAKE_PARALLEL_JOBS="${MAKE_PARALLEL_JOBS:-}" +BUILD_RESULT="SUCCESSFULLY COMPLETED" +BUILD_ERROR="" +RETVAL="0" echo "sha1sum of this script: ${0}" sha1sum $0 @@ -74,10 +77,22 @@ then "See test logs for the exact number." fi echo "Building using \"make verify\"" - [ "${DRYRUN,,}" = "true" ] || make UNATTENDED=yes verify + if [[ "${DRYRUN,,}" != "true" ]] ; then + if ! make UNATTENDED=yes verify ; then + BUILD_ERROR="FAILED 'make verify'" + fi + fi else echo "Building using \"make pkg-verify\"" - [ "${DRYRUN,,}" = "true" ] || make UNATTENDED=yes pkg-verify + if [[ "${DRYRUN,,}" != "true" ]] ; then + if ! make UNATTENDED=yes pkg-verify ; then + BUILD_ERROR="FAILED 'make pkg-verify'" + fi + fi fi - -echo -e "\n$line\n* VPP ${OS_ID^^}-${OS_VERSION_ID}-${OS_ARCH^^} BUILD SUCCESSFULLY COMPLETED\n$line\n" +if [ -n "$BUILD_ERROR" ] ; then + BUILD_RESULT="$BUILD_ERROR" + RETVAL="1" +fi +echo -e "\n$line\n* VPP ${OS_ID^^}-${OS_VERSION_ID}-${OS_ARCH^^} BUILD $BUILD_RESULT\n$line\n" +exit $RETVAL |