]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-volume-pr: create a job for manual triggering of ceph-volume tox runs 805/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 27 Jul 2017 18:24:07 +0000 (14:24 -0400)
committerAlfredo Deza <adeza@redhat.com>
Thu, 27 Jul 2017 19:38:21 +0000 (15:38 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-volume-pr/build/build [new file with mode: 0644]
ceph-volume-pr/config/definitions/ceph-volume-pr.yml [new file with mode: 0644]

diff --git a/ceph-volume-pr/build/build b/ceph-volume-pr/build/build
new file mode 100644 (file)
index 0000000..d347890
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+set -ex
+
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "tox" )
+install_python_packages "pkgs[@]"
+
+cd src/ceph-volume && $VENV/tox -rv
diff --git a/ceph-volume-pr/config/definitions/ceph-volume-pr.yml b/ceph-volume-pr/config/definitions/ceph-volume-pr.yml
new file mode 100644 (file)
index 0000000..335bc6b
--- /dev/null
@@ -0,0 +1,44 @@
+- job:
+    name: ceph-volume-pr
+    display-name: 'ceph-volume: Pull Request tox tests'
+    node: x86_64
+    project-type: freestyle
+    defaults: global
+    quiet-period: 5
+    block-downstream: false
+    block-upstream: false
+    properties:
+      - github:
+          url: https://github.com/ceph/ceph
+    discard-old-builds: true
+    logrotate:
+      daysToKeep: 14
+
+    triggers:
+      - github-pull-request:
+          allow-whitelist-orgs-as-admins: true
+          org-list:
+            - ceph
+          trigger-phrase: 'jenkins test ceph-volume tox'
+          white-list-labels: 'ceph-volume'
+          github-hooks: true
+          permit-all: true
+          auto-close-on-fail: false
+          status-context: "ceph-volume tox testing"
+          started-status: "ceph-volume tox running"
+          success-status: "ceph-volume tox OK"
+          failure-status: "ceph-volume tox failed"
+
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph
+          browser: auto
+          skip-tag: true
+          timeout: 20
+          wipe-workspace: true
+
+    builders:
+      - shell:
+          !include-raw:
+            - ../../../scripts/build_utils.sh
+            - ../../build/build