]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
sepia-fog-images: Allow use of different teuth/cm branches 1208/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 20 Nov 2018 19:45:23 +0000 (14:45 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 20 Nov 2018 19:45:23 +0000 (14:45 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
sepia-fog-images/build/build
sepia-fog-images/config/definitions/sepia-fog-images.yml

index 26d831044326fd0c4b8ab804c01c56fe42748e7d..e6e9033d009724b1c317f337c4b0af4225b88b36 100755 (executable)
@@ -51,9 +51,12 @@ funRetry () {
 if [ ! -d teuthology ]; then
   git clone https://github.com/ceph/teuthology
   cd teuthology
+  git checkout $TEUTHOLOGYBRANCH
 else
   cd teuthology
+  git checkout master
   git pull
+  git checkout $TEUTHOLOGYBRANCH
 fi
 
 # Bootstrap teuthology
@@ -66,9 +69,13 @@ source $WORKSPACE/teuthology/virtualenv/bin/activate
 # Clone or update ceph-cm-ansible
 if [ ! -d ceph-cm-ansible ]; then
   git clone https://github.com/ceph/ceph-cm-ansible
+  cd ceph-cm-ansible
+  git checkout $CMANSIBLEBRANCH
 else
   cd ceph-cm-ansible
+  git checkout master
   git pull
+  git checkout $CMANSIBLEBRANCH
 fi
 
 cd $WORKSPACE
index e860c1b0cc770eb533a6d3067370e772068f9312..b52ec7cb1226a40c80609498e9b6b24c38b8a8dc 100644 (file)
           name: MACHINETYPES
           default: "smithi mira"
           description: "Machine types to capture images for.  (e.g., 'smithi' or 'smithi mira' for multiple machine types)"
+      - string:
+          name: TEUTHOLOGYBRANCH
+          default: "master"
+          description: "Optionally define a different teuthology branch (useful for testing)"
+      - string:
+          name: CMANSIBLEBRANCH
+          default: "master"
+          description: "Optionally define a different ceph-cm-ansible branch (useful for testing)"
 
     builders:
       - shell: