From 5365350289eaa03767be8db0e2af1a6c6d7736e0 Mon Sep 17 00:00:00 2001 From: beierlm Date: Fri, 17 Jul 2020 13:29:45 -0400 Subject: [PATCH] Allow Errors to be Caught The echo command at the end of the script causes Jenkins to ignore any errors that happen during the build step. Change-Id: I1f71051c45d38afeaa8a331e08dcc999aaafca6d Signed-off-by: beierlm --- build-debpkg.sh | 2 ++ devops-stages/stage-build.sh | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build-debpkg.sh b/build-debpkg.sh index e4e83b3..0831a71 100755 --- a/build-debpkg.sh +++ b/build-debpkg.sh @@ -51,4 +51,6 @@ cp -R debian $PKG_DIR/. pushd $PKG_DIR dh_make -y --indep --createorig --a -c apache dpkg-buildpackage -uc -us -tc -rfakeroot +RC=$? popd +exit $RC diff --git a/devops-stages/stage-build.sh b/devops-stages/stage-build.sh index 23e921b..100c999 100755 --- a/devops-stages/stage-build.sh +++ b/devops-stages/stage-build.sh @@ -13,4 +13,3 @@ # See the License for the specific language governing permissions and # limitations under the License. ./build-debpkg.sh -echo "BUILD" -- 2.25.1