summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-10-23 15:10:00 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-10-24 15:31:07 +0000
commitc8ef736370483df6feb761b49fccaa6790b6f8c2 (patch)
treeb8f0021f9fc0898dd4c4e06f2eb9b77a74224dcf
parent754e6877cccddd0a279659c32fa594b23369dc61 (diff)
jenkins: bail early if $MAKE env var is not set
If $MAKE is unset, it produces confusing errors, rather check explicitly. Change-Id: I59b111dfdee4e1edea04155144f01d99f5f72aa1
-rw-r--r--contrib/jenkins_common.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/jenkins_common.sh b/contrib/jenkins_common.sh
index 6cfa3347..bc4ac65b 100644
--- a/contrib/jenkins_common.sh
+++ b/contrib/jenkins_common.sh
@@ -2,6 +2,12 @@
set -ex
+if [ -z "$MAKE" ]; then
+ set +x
+ echo "Error: you need to set \$MAKE before invoking, e.g. MAKE=make"
+ exit 1
+fi
+
verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
prep_build() {