]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
initial take on ceph-ansible pull requests
authorAlfredo Deza <adeza@redhat.com>
Thu, 21 Jan 2016 19:46:38 +0000 (14:46 -0500)
committerAlfredo Deza <adeza@redhat.com>
Thu, 21 Jan 2016 19:46:38 +0000 (14:46 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-ansible-pull-requests/build/build [new file with mode: 0644]
ceph-ansible-pull-requests/config/definitions/ceph-ansible-pull-requests.yml [new file with mode: 0644]

diff --git a/ceph-ansible-pull-requests/build/build b/ceph-ansible-pull-requests/build/build
new file mode 100644 (file)
index 0000000..3f7a16a
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "ansible" )
+install_python_packages "pkgs[@]"
+
+
+cd "$WORKSPACE"/ceph-ansible
+$VENV/ansible-playbook -i "localhost," -c local test.yml
diff --git a/ceph-ansible-pull-requests/config/definitions/ceph-ansible-pull-requests.yml b/ceph-ansible-pull-requests/config/definitions/ceph-ansible-pull-requests.yml
new file mode 100644 (file)
index 0000000..034fa61
--- /dev/null
@@ -0,0 +1,72 @@
+- scm:
+    name: ceph-ansible
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph-ansible.git
+          branches:
+            - ${sha1}
+          refspec: +refs/pull/*:refs/remotes/origin/pr/*
+          browser: auto
+          timeout: 20
+          skip-tag: true
+          wipe-workspace: false
+          basedir: "ceph-ansible"
+
+- scm:
+    name: ceph-build
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph-build.git
+          browser-url: https://github.com/ceph/ceph-build
+          timeout: 20
+          skip-tag: true
+          wipe-workspace: false
+          basedir: "ceph-build"
+
+- job:
+    name: ceph-ansible-pull-requests
+    project-type: freestyle
+    defaults: global
+    display-name: 'ceph-ansible: Pull Requests'
+    quiet-period: 5
+    block-downstream: false
+    block-upstream: false
+    retry-count: 3
+    properties:
+      - github:
+          url: https://github.com/ceph/ceph-ansible
+    logrotate:
+      daysToKeep: 15
+      numToKeep: 30
+      artifactDaysToKeep: -1
+      artifactNumToKeep: -1
+
+    parameters:
+      - string:
+          name: sha1
+          description: "A pull request ID, like 'origin/pr/72/head'"
+
+    triggers:
+      - github-pull-request:
+          allow-whitelist-orgs-as-admins: true
+          org-list:
+            - ceph
+          trigger-phrase: ''
+          only-trigger-phrase: false
+          github-hooks: true
+          permit-all: true
+          auto-close-on-fail: false
+          status-context: "Testing Playbooks"
+          started-status: "Running ansible playbook"
+          success-status: "Run completed"
+          failure-status: "Playbook run failed with errors"
+
+    scm:
+      - ceph-ansible
+      - ceph-build
+
+    builders:
+      - shell:
+          !include-raw:
+            - ../../../scripts/build_utils.sh
+            - ../../build/build