]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
fix the expected value of HUDSON_URL 715/head
authorGregory Meno <gmeno@redhat.com>
Mon, 15 May 2017 17:28:39 +0000 (10:28 -0700)
committerGregory Meno <gmeno@redhat.com>
Mon, 15 May 2017 17:28:50 +0000 (10:28 -0700)
and exit when deps aren't installed when running locally

Signed-off-by: Gregory Meno <gmeno@redhat.com>
ceph-docker-lint/build/build

index 693d03878803332558d5ae64f65f840e19c93975..e313ca4c8eddc2e57cc712da3a6657c94b3a623f 100755 (executable)
@@ -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}