]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-volume-ansible-prs use stable-3.2 if luminous or mimic
authorAlfredo Deza <adeza@redhat.com>
Fri, 9 Nov 2018 18:34:00 +0000 (13:34 -0500)
committerAlfredo Deza <adeza@redhat.com>
Fri, 9 Nov 2018 18:34:00 +0000 (13:34 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-volume-ansible-prs/build/build

index 00d62f10a3fca680e9a132c5a3b8381bcd4f971b..6d5a9a6a91b8b66270eaa12d1d8af6c278f0906d 100644 (file)
@@ -29,6 +29,14 @@ update_vagrant_boxes
 
 cd src/ceph-volume/ceph_volume/tests/functional/$SUBCOMMAND
 
-CEPH_DEV_BRANCH=$ghprbTargetBranch $VENV/tox --workdir=$WORKDIR -vre $DISTRO-$OBJECTSTORE-$SCENARIO -- --provider=libvirt
+if [[ "$ghprbTargetBranch" == "mimic" ]]; then
+    CEPH_ANSIBLE_BRANCH="stable-3.2"
+elif [[ "$ghprbTargetBranch" == "luminous" ]]; then
+    CEPH_ANSIBLE_BRANCH="stable-3.2"
+else
+    CEPH_ANSIBLE_BRANCH="master"
+fi
+
+CEPH_ANSIBLE_BRANCH=$CEPH_ANSIBLE_BRANCH CEPH_DEV_BRANCH=$ghprbTargetBranch $VENV/tox --workdir=$WORKDIR -vre $DISTRO-$OBJECTSTORE-$SCENARIO -- --provider=libvirt
 
 GITHUB_STATUS_STATE="success" $VENV/github-status create