aboutsummaryrefslogtreecommitdiff
path: root/build-scripts/helpers
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2012-02-21 08:27:36 +0200
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2012-02-21 08:27:36 +0200
commita4ac3a09e110c2b43a13d77c4fe4a3ec4cf4c8df (patch)
tree7a7c38c7644669fa2bede0ba5aed6fa00b3c3ef1 /build-scripts/helpers
parentebe904312476dac22315a1251950816dc9480b18 (diff)
Add special error handler for infrastructure-setup parts of build script.
Diffstat (limited to 'build-scripts/helpers')
-rw-r--r--build-scripts/helpers9
1 files changed, 9 insertions, 0 deletions
diff --git a/build-scripts/helpers b/build-scripts/helpers
index 81b868b..edfc675 100644
--- a/build-scripts/helpers
+++ b/build-scripts/helpers
@@ -118,3 +118,12 @@ unpack_external_tarball () {
popd
}
+# Error handler for infrastructure setup (vs compiple) errors
+# Wrap infra-setup code in:
+# trap infrastructure_error ERR
+# trap - ERR
+infrastructure_error () {
+ echo "Caught infrastructure error - finishing build with 'Not Built' status"
+ # Interpreted as NOT_BUILT by Shell Status plugin
+ exit 123
+}