From 078fc7995d268f03258fd91e820fe70fa9cdccc3 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 29 Jun 2020 17:44:02 -0400 Subject: [PATCH] Add ceph-pull-requests-trigger job We're currently running `make` twice per PR. Once for `make check` and once for Ceph Dashboard backend API tests. The dashboard tests can reuse the built environment so let's do that. Signed-off-by: David Galloway --- .../ceph-pull-requests-trigger.yml | 82 +++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 ceph-pull-requests-trigger/config/definitions/ceph-pull-requests-trigger.yml diff --git a/ceph-pull-requests-trigger/config/definitions/ceph-pull-requests-trigger.yml b/ceph-pull-requests-trigger/config/definitions/ceph-pull-requests-trigger.yml new file mode 100644 index 00000000..1861da0b --- /dev/null +++ b/ceph-pull-requests-trigger/config/definitions/ceph-pull-requests-trigger.yml @@ -0,0 +1,82 @@ +- job: + name: ceph-pull-requests-trigger + node: master + project-type: multijob + defaults: global + # We want make check to only run on Bionic b/c it has python2 and python3 and b/c all builds should build on Bionic + display-name: 'ceph: Pull Requests Trigger' + description: "This job kicks off `make check` and any subsequent jobs that can reuse that built environment." + quiet-period: 5 + block-downstream: false + block-upstream: false + properties: + - build-discarder: + days-to-keep: 15 + num-to-keep: 300 + artifact-days-to-keep: -1 + artifact-num-to-keep: -1 + - github: + url: https://github.com/ceph/ceph/ + + triggers: + - github-pull-request: + allow-whitelist-orgs-as-admins: true + org-list: + - ceph + trigger-phrase: 'jenkins test.*' + skip-build-phrase: '^jenkins do not test.*' + only-trigger-phrase: false + github-hooks: true + permit-all: true + auto-close-on-fail: false + status-context: "Ceph Pull Request Pipeline" + started-status: "Running" + success-status: "Passed!" + failure-status: "Failed" + +# scm: +# - git: +# url: https://github.com/ceph/ceph.git +# branches: +# - origin/pr/${ghprbPullId}/merge +# refspec: +refs/pull/${ghprbPullId}/*:refs/remotes/origin/pr/${ghprbPullId}/* +# browser: auto +# timeout: 20 +# skip-tag: true +# shallow-clone: true +# honor-refspec: true +# wipe-workspace: true + + builders: + - multijob: + name: 'make check' + condition: SUCCESSFUL + projects: + - name: ceph-pull-requests-dgalloway + current-parameters: true + exposed-scm: false + - multijob: + name: 'ceph dashboard backend' + condition: SUCCESSFUL + projects: + - name: ceph-dashboard-pr-backend-dgalloway + current-parameters: true + exposed-scm: false + +# publishers: +# - cobertura: +# report-file: "src/pybind/mgr/dashboard/frontend/coverage/cobertura-coverage.xml" +# only-stable: "true" +# health-auto-update: "false" +# stability-auto-update: "false" +# zoom-coverage-chart: "true" +# source-encoding: "Big5" +# targets: +# - files: +# healthy: 10 +# unhealthy: 20 +# failing: 30 +# - method: +# healthy: 10 +# unhealthy: 20 +# failing: 30 -- 2.39.5