From f41b221c4cb37f3d9ffae0b0fa97edc611ef1f46 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 24 Aug 2017 13:12:29 -0400 Subject: [PATCH] ceph-docker: just check if jenkins HUDSON_URL var is set Signed-off-by: David Galloway --- ceph-docker-flake8/build/build | 4 ++-- ceph-docker-lint/build/build | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ceph-docker-flake8/build/build b/ceph-docker-flake8/build/build index 70a43b030..e2682ef1c 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 50b7bfc9d..7aeae3b8e 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 -- 2.47.3