From 6afcd79c347fddf7f90ae0e48b031d55d14043f0 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Mon, 19 Dec 2016 14:12:13 -0600 Subject: [PATCH] Adds a nightly job that tests ceph-installer This job is parametrized so that we can also run it manually or trigger it easily from other jobs. Signed-off-by: Andrew Schoen --- ceph-installer-nightly/build/build | 9 ++++ .../definitions/ceph-installer-nightly.yml | 46 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 ceph-installer-nightly/build/build create mode 100644 ceph-installer-nightly/config/definitions/ceph-installer-nightly.yml diff --git a/ceph-installer-nightly/build/build b/ceph-installer-nightly/build/build new file mode 100644 index 00000000..f572889b --- /dev/null +++ b/ceph-installer-nightly/build/build @@ -0,0 +1,9 @@ +# the following two methods exist in scripts/build_utils.sh +pkgs=( "tox" ) +install_python_packages "pkgs[@]" + +WORKDIR=$(mktemp -td tox.XXXXXXXXXX) + +cd $WORKSPACE/tests/functional + +INSTALLER_DEV_BRANCH=$INSTALLER_BRANCH CEPH_ANSIBLE_DEV_BRANCH=$CEPH_ANSIBLE_BRANCH $VENV/tox -rv -e=ansible2.2-nightly --workdir=$WORKDIR -- --provider=libvirt diff --git a/ceph-installer-nightly/config/definitions/ceph-installer-nightly.yml b/ceph-installer-nightly/config/definitions/ceph-installer-nightly.yml new file mode 100644 index 00000000..9a442d1e --- /dev/null +++ b/ceph-installer-nightly/config/definitions/ceph-installer-nightly.yml @@ -0,0 +1,46 @@ +- job: + name: ceph-installer-nightly + node: vagrant && libvirt + project-type: freestyle + defaults: global + display-name: 'ceph-installer: Nightly tests for ceph-installer and ceph-ansible integration' + quiet-period: 5 + block-downstream: false + block-upstream: false + retry-count: 3 + properties: + - github: + url: https://github.com/ceph/ceph-installer + logrotate: + daysToKeep: -1 + numToKeep: -1 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + parameters: + - string: + name: INSTALLER_BRANCH + description: "The ceph-installer branch (or tag) to test" + default: master + + - string: + name: CEPH_ANSIBLE_BRANCH + description: "The ceph-ansible branch (or tag) to test" + default: master + + triggers: + - timed: '@daily' + + scm: + - git: + url: https://github.com/ceph/ceph-installer.git + branches: + - $INSTALLER_BRANCH + browser: auto + timeout: 20 + + builders: + - shell: + !include-raw: + - ../../../scripts/build_utils.sh + - ../../build/build -- 2.39.5