]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-pr-submodules: create a configuration for the new job
authorAlfredo Deza <adeza@redhat.com>
Mon, 21 Nov 2016 14:13:38 +0000 (09:13 -0500)
committerAlfredo Deza <adeza@redhat.com>
Mon, 21 Nov 2016 17:30:05 +0000 (12:30 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-pr-submodules/config/definitions/ceph-pr-commits.yml [new file with mode: 0644]

diff --git a/ceph-pr-submodules/config/definitions/ceph-pr-commits.yml b/ceph-pr-submodules/config/definitions/ceph-pr-commits.yml
new file mode 100644 (file)
index 0000000..eed02ec
--- /dev/null
@@ -0,0 +1,54 @@
+- job:
+    name: ceph-pr-submodules
+    project-type: freestyle
+    defaults: global
+    display-name: 'ceph: Pull Request modified submodules'
+    concurrent: true
+    quiet-period: 5
+    block-downstream: false
+    block-upstream: false
+    retry-count: 3
+    properties:
+      - github:
+          url: https://github.com/ceph/ceph/
+    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: "Unmodifed Submodules"
+          started-status: "checking if PR has modified submodules"
+          success-status: "submodules for project are unmodified"
+          failure-status: "Approval needed: modified submodules found"
+
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph.git
+          branches:
+            - ${sha1}
+          refspec: +refs/pull/*:refs/remotes/origin/pr/*
+          browser: auto
+          timeout: 20
+          skip-tag: true
+          wipe-workspace: false
+
+    builders:
+      - shell:
+          !include-raw:
+            - ../../build/build