]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-docker: just check if jenkins HUDSON_URL var is set 843/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 24 Aug 2017 17:12:29 +0000 (13:12 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 28 Aug 2017 20:57:18 +0000 (16:57 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
ceph-docker-flake8/build/build
ceph-docker-lint/build/build

index 70a43b030d3de4e346ad601f79a2277b0c8f0fb3..e2682ef1c4f4722f6ebbd47d841d466c783d9616 100755 (executable)
@@ -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
index 50b7bfc9de74e5c681c73a3eb419ccef3b3d5434..7aeae3b8eb3673ec8530ca66ee3e5681d7444865 100755 (executable)
@@ -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