From: David Galloway Date: Thu, 24 Aug 2017 17:12:29 +0000 (-0400) Subject: ceph-docker: just check if jenkins HUDSON_URL var is set X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f41b221c4cb37f3d9ffae0b0fa97edc611ef1f46;p=ceph-build.git ceph-docker: just check if jenkins HUDSON_URL var is set Signed-off-by: David Galloway --- diff --git a/ceph-docker-flake8/build/build b/ceph-docker-flake8/build/build index 70a43b03..e2682ef1 100755 --- a/ceph-docker-flake8/build/build +++ b/ceph-docker-flake8/build/build @@ -28,8 +28,8 @@ function check(){ } function main() { - # install some of our dependencies - if [ "${HUDSON_URL}" = "https://jenkins.ceph.com/" ] + # install some of our dependencies if running on a jenkins slave + if [[ -n "$HUDSON_URL" ]] then sudo yum -y install epel-release sudo yum -y install docker jq diff --git a/ceph-docker-lint/build/build b/ceph-docker-lint/build/build index 50b7bfc9..7aeae3b8 100755 --- a/ceph-docker-lint/build/build +++ b/ceph-docker-lint/build/build @@ -32,8 +32,8 @@ function check(){ } function main() { - # install some of our dependencies - if [ "${HUDSON_URL}" = "https://jenkins.ceph.com/" ] + # install some of our dependencies if running on a jenkins slave + if [[ -n "$HUDSON_URL" ]] then sudo yum -y install epel-release sudo yum -y install docker jq