From: Gregory Meno Date: Mon, 15 May 2017 17:28:39 +0000 (-0700) Subject: fix the expected value of HUDSON_URL X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=69dc96159122967a98da303fe2e2b6eab95aabbc;p=ceph-build.git fix the expected value of HUDSON_URL and exit when deps aren't installed when running locally Signed-off-by: Gregory Meno --- diff --git a/ceph-docker-lint/build/build b/ceph-docker-lint/build/build index 693d0387..e313ca4c 100755 --- a/ceph-docker-lint/build/build +++ b/ceph-docker-lint/build/build @@ -34,7 +34,7 @@ function check(){ function main() { # install some of our dependencies -if [ "${HUDSON_URL}" = "jenkins.ceph.com" ] +if [ "${HUDSON_URL}" = "https://jenkins.ceph.com" ] then sudo yum -y install epel-release sudo yum -y install ShellCheck @@ -45,10 +45,12 @@ else if [[ ! -x $(which jq) ]] then echo 'install jq first' + exit 1 fi if [[ ! -x $(which shellcheck) ]] then echo 'install shellcheck first' + exit 1 fi pull_request_id=${ghprbPullId:-$2} workspace=${WORKSPACE:-$1}