]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-installer-tests: a project to run ceph-installer functional tests 612/head
authorAndrew Schoen <aschoen@redhat.com>
Fri, 6 Jan 2017 17:05:52 +0000 (11:05 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 6 Jan 2017 17:32:28 +0000 (11:32 -0600)
This will create a new jenkins job for each testing scenario defined in
the config file. These jobs will run daily and can be trigger manually,
optionally providing which branches of ceph-installer and ceph-ansible
to test with.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-installer-nightly/build/build [deleted file]
ceph-installer-nightly/config/definitions/ceph-installer-nightly.yml [deleted file]
ceph-installer-tests/build/build [new file with mode: 0644]
ceph-installer-tests/config/definitions/ceph-installer-tests.yml [new file with mode: 0644]

diff --git a/ceph-installer-nightly/build/build b/ceph-installer-nightly/build/build
deleted file mode 100644 (file)
index f572889..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-# 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
deleted file mode 100644 (file)
index 9276983..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-- 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
-
-    publishers:
-      - email:
-          recipients: aschoen@redhat.com adeza@redhat.com
diff --git a/ceph-installer-tests/build/build b/ceph-installer-tests/build/build
new file mode 100644 (file)
index 0000000..413c71a
--- /dev/null
@@ -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=$SCENARIO --workdir=$WORKDIR -- --provider=libvirt
diff --git a/ceph-installer-tests/config/definitions/ceph-installer-tests.yml b/ceph-installer-tests/config/definitions/ceph-installer-tests.yml
new file mode 100644 (file)
index 0000000..ddf2fc4
--- /dev/null
@@ -0,0 +1,61 @@
+- project:
+    name: ceph-installer-tests
+    scenario:
+      - ansible2.2-nightly_centos7
+      - ansible2.2-nightly_xenial
+    jobs:
+        - 'ceph-installer-tests-{scenario}'
+
+- job-template:
+    name: 'ceph-installer-tests-{scenario}'
+    node: vagrant && libvirt 
+    project-type: freestyle
+    defaults: global
+    display-name: 'ceph-installer: Tests [{scenario}]'
+    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:
+      - inject:
+          properties-content: |
+            SCENARIO={scenario}
+      - shell:
+          !include-raw-escape:
+            - ../../../scripts/build_utils.sh
+            - ../../build/build
+
+    publishers:
+      - email:
+          recipients: aschoen@redhat.com adeza@redhat.com