From: Ernesto Puerta Date: Fri, 13 Nov 2020 19:14:44 +0000 (+0100) Subject: ceph-pr,api-pr: skip when not needed X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1705%2Fhead;p=ceph-build.git ceph-pr,api-pr: skip when not needed Skip running make-check and ceph-api tests when the PR only contains changes in certain dirs (doc/, .github/) or certain extensions (.rst, .md, .txt). In any case, a Jenkins job can still be manually triggered (`jenkins test...`). Signed-off-by: Ernesto Puerta --- diff --git a/ceph-pr-api/config/definitions/ceph-pr-api.yml b/ceph-pr-api/config/definitions/ceph-pr-api.yml index 5712479f..da64e54b 100644 --- a/ceph-pr-api/config/definitions/ceph-pr-api.yml +++ b/ceph-pr-api/config/definitions/ceph-pr-api.yml @@ -48,6 +48,25 @@ started-status: "running API tests" success-status: "ceph API tests succeeded" failure-status: "ceph API tests failed" + exclude-region: + ^.github/ + ^admin/ + ^ceph-menv + ^doc/ + ^etc/ + ^examples/ + ^fusetrace/ + ^keys/ + ^man/ + ^mirroring/ + ^selinux/ + ^share/ + ^sudoers.d/ + ^systemd/ + ^udev/ + \.rst$ + \.txt$ + \.md$ scm: - git: diff --git a/ceph-pull-requests/config/definitions/ceph-pull-requests.yml b/ceph-pull-requests/config/definitions/ceph-pull-requests.yml index 1ef21979..17398705 100644 --- a/ceph-pull-requests/config/definitions/ceph-pull-requests.yml +++ b/ceph-pull-requests/config/definitions/ceph-pull-requests.yml @@ -45,6 +45,26 @@ started-status: "running make check" success-status: "make check succeeded" failure-status: "make check failed" + exclude-region: + ^.github/ + ^admin/ + ^ceph-menv + ^doc/ + ^etc/ + ^examples/ + ^fusetrace/ + ^keys/ + ^man/ + ^mirroring/ + ^qa/ + ^selinux/ + ^share/ + ^sudoers.d/ + ^systemd/ + ^udev/ + \.rst$ + \.txt$ + \.md$ scm: - git: