diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-07-10 14:54:24 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-07-10 14:55:25 +0200 |
commit | 7887ce7aeaf5d5fa5c1ac29341fa67814921dccc (patch) | |
tree | fc372e73cf9c0b9a6c444e1a3013a4158d8f4b75 /contrib/jenkins_common.sh | |
parent | 6a538a092106e448a354e42c161ea7630e457455 (diff) |
jenkins helpers: some minimal documentation/comments + print errors
We should print meaningful error messages in case a user doesn't have
the required local PATH set up, or doesn't specify a required command
line argument.
Change-Id: I30a2935f93ade69222b1e0c3e212ee10e17c1823
Diffstat (limited to 'contrib/jenkins_common.sh')
-rw-r--r-- | contrib/jenkins_common.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/jenkins_common.sh b/contrib/jenkins_common.sh index 824dd43a..bce771d8 100644 --- a/contrib/jenkins_common.sh +++ b/contrib/jenkins_common.sh @@ -1,5 +1,14 @@ #!/bin/sh +# this is a common helper script that is shared among all BTS model +# specific helper scripts like jenkins_sysmobts.sh. You shouldn't call +# this directly, but rather indirectly via the bts-specific scripts + +if ! [ -x "$(command -v osmo-deps.sh)" ]; then + echo "Error: We need to have scripts/osmo-deps.sh from http://git.osmocom.org/osmo-ci/ in PATH !" + exit 2 +fi + set -ex base="$PWD" |