From: Andrew Schoen Date: Tue, 17 Apr 2018 17:47:14 +0000 (-0500) Subject: ceph-container-prs: only auto start a subsection of tests X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3c9680b83df6768fd15d7c24df65a6316eb5511c;p=ceph-build.git ceph-container-prs: only auto start a subsection of tests All tests can be triggered manually by github comments, but we only want certain ones to start automatically when the PR is created. Signed-off-by: Andrew Schoen --- diff --git a/ceph-container-prs/config/definitions/ceph-container-prs.yml b/ceph-container-prs/config/definitions/ceph-container-prs.yml index 94dab223..f81cb75d 100644 --- a/ceph-container-prs/config/definitions/ceph-container-prs.yml +++ b/ceph-container-prs/config/definitions/ceph-container-prs.yml @@ -1,25 +1,33 @@ - project: - name: ceph-container-prs + name: ceph-container-prs-auto os: - centos7 - - xenial ceph-version: - - jewel - luminous test: - cluster - filestore_osds_container - bluestore_osds_container - docker_cluster_collocation - exclude: - - ceph-version: jewel - test: bluestore_osds_container jobs: - - 'ceph-container-prs-ceph_ansible-{ceph-version}-{os}-{test}' + - 'ceph-container-prs-auto' +- project: + name: ceph-container-prs-trigger + os: + - xenial + ceph-version: + - jewel + test: + - cluster + - filestore_osds_container + - docker_cluster_collocation + jobs: + - 'ceph-container-prs-trigger' - job-template: name: 'ceph-container-prs-ceph_ansible-{ceph-version}-{os}-{test}' + id: 'ceph-container-prs-auto' node: vagrant&&libvirt&¢os7 concurrent: true defaults: global @@ -88,3 +96,75 @@ - ABORTED build-steps: - shell: !include-raw ../../build/teardown + +- job-template: + name: 'ceph-container-prs-ceph_ansible-{ceph-version}-{os}-{test}' + id: 'ceph-container-prs-trigger' + node: vagrant&&libvirt&¢os7 + concurrent: true + defaults: global + display-name: 'ceph-container: Pull Requests [ceph_ansible-{ceph-version}-{os}-{test}]' + quiet-period: 5 + block-downstream: false + block-upstream: false + retry-count: 3 + properties: + - github: + url: https://github.com/ceph/ceph-container + - build-discarder: + days-to-keep: 15 + num-to-keep: -1 + artifact-days-to-keep: -1 + artifact-num-to-keep: -1 + + parameters: + - string: + name: sha1 + description: "A pull request ID, like 'origin/pr/72/head'" + + triggers: + - github-pull-request: + cancel-builds-on-update: true + allow-whitelist-orgs-as-admins: true + org-list: + - ceph + skip-build-phrase: '^jenkins do not test.*|.*\[skip ci\].*' + trigger-phrase: 'jenkins test ceph_ansible-{ceph-version}-{os}-{test}' + only-trigger-phrase: true + github-hooks: true + permit-all: true + auto-close-on-fail: false + status-context: "Testing: ceph_ansible-{ceph-version}-{os}-{test}" + started-status: "Running: ceph_ansible-{ceph-version}-{os}-{test}" + success-status: "OK - ceph_ansible-{ceph-version}-{os}-{test}" + failure-status: "FAIL - ceph_ansible-{ceph-version}-{os}-{test}" + + scm: + - git: + url: https://github.com/ceph/ceph-container.git + branches: + - ${{sha1}} + refspec: +refs/pull/*:refs/remotes/origin/pr/* + browser: auto + timeout: 20 + skip-tag: true + wipe-workspace: false + + builders: + - inject: + properties-content: | + SCENARIO=ceph_ansible-{ceph-version}-{os}-{test} + - shell: + !include-raw-escape: + - ../../../scripts/build_utils.sh + - ../../build/build + + publishers: + - postbuildscript: + builders: + - role: SLAVE + build-on: + - FAILURE + - ABORTED + build-steps: + - shell: !include-raw ../../build/teardown