Allow Errors to be Caught 59/9459/2
authorbeierlm <mark.beierl@canonical.com>
Fri, 17 Jul 2020 17:29:45 +0000 (13:29 -0400)
committerbeierlm <mark.beierl@canonical.com>
Fri, 17 Jul 2020 17:34:01 +0000 (13:34 -0400)
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 <mark.beierl@canonical.com>
build-debpkg.sh
devops-stages/stage-build.sh

index e4e83b3..0831a71 100755 (executable)
@@ -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
index 23e921b..100c999 100755 (executable)
@@ -13,4 +13,3 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 ./build-debpkg.sh
-echo "BUILD"