From 8e42cf083f63d8f28318973cdf5c8d7ea2a3bf5b Mon Sep 17 00:00:00 2001
From: Andreas Jaeger <aj@suse.de>
Date: Wed, 26 Feb 2014 21:04:10 +0100
Subject: [PATCH] Fix success-pattern usage for openstack-manuals

Change Ia8f60c8a4b9d1b18583366d83ddb82dc61bff9f5 added a generic
rule to use a success-pattern to point to docs-draft for built books.
The order here is important, the regex line must come before the
non-regex line so that the regex is applied in all cases.

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

diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml
index 8110b6d669..32ad3b84b5 100644
--- a/modules/openstack_project/files/zuul/layout.yaml
+++ b/modules/openstack_project/files/zuul/layout.yaml
@@ -446,10 +446,12 @@ jobs:
     branch: ^(?!stable/grizzly).*$
   - name: gate-openstack-manuals-tox-checkdeletions
     branch: ^(?!stable/grizzly).*$
-  - name: gate-openstack-manuals-tox-doc-publish-checkbuild
-    branch: ^(?!stable/grizzly).*$
+  # The order of the next two rules is important, the more generic one
+  # needs to be first.
   - name: ^gate-.*-tox-doc-publish-checkbuild$
     success-pattern: http://docs-draft.openstack.org/{build.parameters[LOG_PATH]}/publish-docs/
+  - name: gate-openstack-manuals-tox-doc-publish-checkbuild
+    branch: ^(?!stable/grizzly).*$
   - name: ^gate-.*-tox-checkniceness$
     voting: false
 # Deprecated documentation targets: