From: beierlm Date: Fri, 17 Jul 2020 17:29:45 +0000 (-0400) Subject: Allow Errors to be Caught X-Git-Tag: release-v9.0-start~42 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=5365350289eaa03767be8db0e2af1a6c6d7736e0;p=osm%2Ftests.git 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 --- 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"