From 06aada389aa1ceba23bb04b2020689b0d9f06c44 Mon Sep 17 00:00:00 2001 From: "James E. Blair" <jeblair@openstack.org> Date: Thu, 23 Jan 2014 16:46:30 -0800 Subject: [PATCH] Ensure a recent (48h) check result Add a comment-added filter to the check pipeline that matches whenever there is an existing vote from jenkins that is more than 48 hours old. This should mean that any change that has activity on it (in the form of anyone or any bot leaving comments) will have a relatively recent check result. This value may be changed later, but I'm setting it to a moderately conservative 48h intially to hopefully reduce the potential rush. Change-Id: I814660aead8ccc8c089594775fe7de62b63f3903 --- modules/openstack_project/files/zuul/layout.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index fd293f0272..8ed20b5e8f 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -13,6 +13,10 @@ pipelines: - event: change-restored - event: comment-added comment_filter: (?i)^\s*recheck(( (?:bug|lp)[\s#:]*(\d+))|( no bug))\s*$ + - event: comment-added + require-approval: + - username: jenkins + older-than: 48h success: gerrit: verified: 1