restart_libvirt_services
update_vagrant_boxes
-# the $SCENARIO var is injected by the job template. It maps
-# to an actual, defined, tox environment
-if ! timeout 3h $VENV/tox -rv -e=$RELEASE-$ANSIBLE_VERSION-$SCENARIO --workdir=$WORKDIR -- --provider=libvirt; then
- echo "ERROR: Job didn't complete successfully or got stuck for more than 3h."
- exit 1
+if [ "$RELEASE" == 'jewel' ] && [ "$CEPH_ANSIBLE_BRANCH" == 'stable-2.2' -o "$CEPH_ANSIBLE_BRANCH" == 'stable-3.0' ]; then
+ start_tox tag-stable-3.0-jewel-centos-7
+elif [ "$RELEASE" == 'luminous' ] && [ "$CEPH_ANSIBLE_BRANCH" == 'stable-3.0' ]; then
+ start_tox tag-stable-3.0-jewel-centos-7
+ start_tox tag-stable-3.0-luminous-centos-7
+elif [ "$RELEASE" == 'luminous' ] && [ "$CEPH_ANSIBLE_BRANCH" == 'master' ]; then
+ start_tox tag-build-master-luminous-ubuntu-16.04
fi
ceph_ansible_branch:
- stable-2.2
- stable-3.0
- - master
jobs:
- 'ceph-ansible-nightly-{release}-{ansible_version}-{ceph_ansible_branch}-{scenario}'
SCENARIO={scenario}
RELEASE={release}
ANSIBLE_VERSION={ansible_version}
+ CEPH_ANSIBLE_BRANCH={ceph_ansible_branch}
- shell:
!include-raw-escape:
- ../../../scripts/build_utils.sh
done
popd
-# the $SCENARIO var is injected by the job template. It maps
-# to an actual, defined, tox environment
-if ! timeout 3h $VENV/tox -rv -e=$RELEASE-$ANSIBLE_VERSION-$SCENARIO --workdir=$WORKDIR -- --provider=libvirt; then
- echo "ERROR: Job didn't complete successfully or got stuck for more than 3h."
- exit 1
+if [ "$RELEASE" == 'jewel' ]; then
+ start_tox tag-build-master-jewel-ubuntu-16.04
+elif [ "$RELEASE" == 'luminous' ]; then
+ start_tox tag-build-master-luminous-ubuntu-16.04
+else
+ start_tox latest
fi
vagrant box prune
fi
}
+
+start_tox() {
+# the $SCENARIO var is injected by the job template. It maps
+# to an actual, defined, tox environment
+ if ! CEPH_DOCKER_IMAGE_TAG=$1 timeout 3h $VENV/tox -rv -e=$RELEASE-$ANSIBLE_VERSION-$SCENARIO --workdir=$WORKDIR -- --provider=libvirt; then
+ echo "ERROR: Job didn't complete successfully or got stuck for more than 3h."
+ exit 1
+ fi
+}