]> git.apps.os.sepia.ceph.com Git - autobuild-ceph.git/commitdiff
fabfile: build ceph-ci too for deb and rpm builders
authorSage Weil <sage@redhat.com>
Mon, 1 Jun 2015 16:28:07 +0000 (09:28 -0700)
committerSage Weil <sage@redhat.com>
Tue, 2 Jun 2015 04:38:52 +0000 (00:38 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
fabfile.py

index c535d13f92b76bb7913ff1ed0a5f9ea8169a4824..9c8206c043ab6abb7c8d951ea14e7af79dd30cbc 100644 (file)
@@ -672,18 +672,24 @@ def _deb_builder(git_url, flavor, extra_remotes={}):
 
 @roles('gitbuilder_auto')
 def gitbuilder_auto():
-    _deb_builder('https://github.com/ceph/ceph.git', 'auto')
+    _deb_builder('https://github.com/ceph/ceph.git', 'auto',
+                 extra_remotes=dict(
+                     ci='https://github.com/ceph/ceph-ci.git'
+                 ))
     sudo('start autobuild-ceph || /etc/init.d/autobuild-ceph start')
     _sync_to_gitbuilder_from_hostname()
 
 @roles('gitbuilder_ceph_rpm')
 def gitbuilder_ceph_rpm():
-    _gitbuilder_ceph_rpm('https://github.com/ceph/ceph.git', 'auto')
+    _gitbuilder_ceph_rpm('https://github.com/ceph/ceph.git', 'auto',
+                         extra_remotes=dict(
+                             ci='https://github.com/ceph/ceph-ci.git'
+                         ))
     hostname = run('hostname -s')
     flavor = hostname.split('-')[-1]
     _sync_to_gitbuilder('ceph', 'rpm', flavor)
 
-def _gitbuilder_ceph_rpm(url, flavor):
+def _gitbuilder_ceph_rpm(url, flavor, extra_remotes={}):
     if '6-' in run('hostname -s'):
         sphinx = 'python-sphinx10'
     else:
@@ -691,6 +697,7 @@ def _gitbuilder_ceph_rpm(url, flavor):
     _rh_gitbuilder(
         flavor=flavor,
         git_repo=url,
+        extra_remotes=extra_remotes,
         extra_packages=[
             'pkgconfig',
             'automake',