]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
jenkins: use in-tree clone for the ceph-build repo 3/head
authorKen Dreyer <ken.dreyer@inktank.com>
Tue, 14 Jan 2014 17:18:39 +0000 (10:18 -0700)
committerKen Dreyer <ken.dreyer@inktank.com>
Thu, 16 Jan 2014 04:29:55 +0000 (21:29 -0700)
Historically we have had a single system-wide clone of the ceph-build
repository on each builder, at /srv/ceph-build.

The disadvantage to this configuration is that there is no way to ensure
that each of these clones are up to date. When we make changes to the
ceph-build repository on GitHub, we have to manually pull the changes
into each builder's local clone at /srv.

Going forward, we will use the Multi-SCM plugin to Jenkins to make the
ceph-setup Jenkins job use an up-to-date clone of the ceph-build
repository. This will ensure that Jenkins is using the very latest code
from ceph-build.

The ceph-build repository will be cloned into the root of the tree.
Remove the references to /srv/ceph-build and just use the relative path,
"ceph-build".

jenkins/build
jenkins/setup

index 44b181cff8b86c9862091075985f66bc533ba987..3bb1307b43ffd4ed88b3ba6ec400beaa77c3a81d 100644 (file)
@@ -26,11 +26,11 @@ echo "*****"
 env
 echo "*****"
 
-if [ ! -d /srv/ceph-build ] ; then
+if [ ! -d ceph-build ] ; then
     echo "Build tools are not installed"
     exit 1
 fi
-bindir=/srv/ceph-build
+bindir=$(pwd)/ceph-build
 
 case $HOST in
 gitbuilder-cdep-deb* | tala* | mira*)
index 5ef2dd9816e1006cd13e6149de157f79e1d72c6e..a0b12c58068d5e4d6bc144de69dae3defd7289d5 100644 (file)
@@ -30,11 +30,11 @@ fi
 
 echo "Building version $(git describe) Branch $Branch"
 
-if [ ! -d /srv/ceph-build ] ; then
+if [ ! -d ceph-build ] ; then
     echo "Build tools are not installed"
     exit 1
 fi
-bindir=/srv/ceph-build
+bindir=$(pwd)/ceph-build
 rm -rf dist
 rm -rf release