From 98b169f60030fed4b9a54bf7bd5d1476057bcdf5 Mon Sep 17 00:00:00 2001
From: Clark Boylan <clark.boylan@gmail.com>
Date: Thu, 20 Feb 2014 16:17:15 -0800
Subject: [PATCH] Have zuul enqueue changes when approved

If a change had a -1 verified vote on it from jenkins zuul would not
enqueue that change for check or gate testing when that change was
approved. Zuul should enqueue the change for check testing then move it
to the gate pipeline if a verified +1 comes back from check.

Change-Id: Icdcc4878a8289a2088c85afdfc72c56d4fd3a55a
---
 modules/openstack_project/files/zuul/layout.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml
index 09e2767079..4f4b354d56 100644
--- a/modules/openstack_project/files/zuul/layout.yaml
+++ b/modules/openstack_project/files/zuul/layout.yaml
@@ -27,6 +27,12 @@ pipelines:
           require-approval:
             - approved: 1
             - username: jenkins
+        - event: comment-added
+          require-approval:
+            - verified: -1
+              username: jenkins
+          approval:
+            - approved: 1
         - event: comment-added
           require-approval:
             - verified: -2