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=refs%2Fchanges%2F59%2F9459%2F2;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"