]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-volume-pr: define only the sha1 of pull requests so that it doesn't build everything
authorAlfredo Deza <adeza@redhat.com>
Tue, 1 Aug 2017 11:44:17 +0000 (07:44 -0400)
committerAlfredo Deza <adeza@redhat.com>
Thu, 10 Aug 2017 18:12:54 +0000 (14:12 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-volume-pr/config/definitions/ceph-volume-pr.yml

index 82168145ff6c9e420ef14edb3a42358dd7b7bc92..54684e550852937d22c121d564053d76f1b140f1 100644 (file)
@@ -1,7 +1,7 @@
 - job:
     name: ceph-volume-pr
     display-name: 'ceph-volume: Pull Request tox tests'
-    node: x86_64
+    node: python3
     project-type: freestyle
     defaults: global
     quiet-period: 5
@@ -16,9 +16,7 @@
 
     triggers:
       - github-pull-request:
-          allow-whitelist-orgs-as-admins: true
-          org-list:
-            - ceph
+          cancel-builds-on-update: true
           only-trigger-phrase: true
           trigger-phrase: 'jenkins test ceph-volume tox'
           github-hooks: true
           success-status: "ceph-volume tox OK"
           failure-status: "ceph-volume tox failed"
 
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph
+          browser: auto
+          branches:
+            - ${sha1}
+          refspec: +refs/pull/*:refs/remotes/origin/pr/*
+          skip-tag: true
+          timeout: 20
+          wipe-workspace: true
+
     builders:
       - shell:
           !include-raw: