diff options
author | deepshikhaaa <deepshikhakhandelwal8@gmail.com> | 2017-11-13 17:14:40 +0530 |
---|---|---|
committer | Nigel Babu <nigelb@redhat.com> | 2017-11-21 06:37:33 +0000 |
commit | ee1cf947652c750a57a20d0573a8dd4c239cb311 (patch) | |
tree | 020dd793264500ae01fd5528d807e0900d545a3b /build-gluster-org/jobs | |
parent | 989f67a45843937d4a285daaa012fd6b6ea58eb5 (diff) |
Job to abandon the oldest reviews
Change-Id: I143ef9c65c1fa7755d5d1e21fb32c484396c887d
Diffstat (limited to 'build-gluster-org/jobs')
-rw-r--r-- | build-gluster-org/jobs/close_old_reviews.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/build-gluster-org/jobs/close_old_reviews.yml b/build-gluster-org/jobs/close_old_reviews.yml new file mode 100644 index 0000000..e8ad6cc --- /dev/null +++ b/build-gluster-org/jobs/close_old_reviews.yml @@ -0,0 +1,30 @@ +- job: + name: close_old_reviews + node: smoke7 + description: Closing the oldest reviews + project-type: freestyle + concurrent: true + + triggers: + - timed: "H 0 * * *" + + parameters: + - string: + default: '90' + description: Reviews which are 90 days or more older on Gerrit + name: DAYS + - string: + default: '25' + description: Number of oldest reviews to be abandoned on Gerrit + name: REV_COUNT + + builders: + - shell: !include-raw: ../scripts/close_old_reviews.py + + wrappers: + - timestamps + - credentials-binding: + - username-password-separated: + credential-id: 7e0c919e-4568-42ac-b28a-660a148609fe + username: HTTP_USERNAME + password: HTTP_PASSWORD |