From 596de54b92bc1a26968b7ef683cad0f09a6f0d7b Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Mon, 23 Jun 2014 15:13:17 -0700 Subject: [PATCH] Update pipelines to new Zuul syntax Drop use of 'filter' and use some new pipeline requirements to slightly simplify things. Change-Id: I6d5a1e0e9e8b91f7945c588a03a154e8c5f0484a Depends-On: Iec6e3be64c5d838a6f1cc5c37fd64c4abfdab8ea --- .../openstack_project/files/zuul/layout.yaml | 38 +++++++------------ 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index 39f022de7d..3be24cf2a8 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -15,7 +15,7 @@ pipelines: - event: patchset-created - event: change-restored - event: comment-added - comment_filter: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*recheck(( (?:bug|lp)[\s#:]*(\d+))|( no bug))\s*$ + comment: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*recheck(( (?:bug|lp)[\s#:]*(\d+))|( no bug))\s*$ - event: comment-added require-approval: - username: jenkins @@ -27,19 +27,13 @@ pipelines: - username: jenkins older-than: 24h - event: comment-added - comment_filter: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*reverify( (?:bug|lp)[\s#:]*(\d+))\s*$ + comment: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*reverify( (?:bug|lp)[\s#:]*(\d+))\s*$ require-approval: - workflow: 1 - username: jenkins - event: comment-added require-approval: - - verified: -1 - username: jenkins - approval: - - workflow: 1 - - event: comment-added - require-approval: - - verified: -2 + - verified: [-1, -2] username: jenkins approval: - workflow: 1 @@ -61,26 +55,20 @@ pipelines: require: open: True current-patchset: True + approval: + - verified: [1, 2] + username: jenkins + newer-than: 24h + - workflow: 1 trigger: gerrit: - event: comment-added - require-approval: - - verified: 1 - username: jenkins - newer-than: 24h - approval: - - workflow: 1 - - event: comment-added - require-approval: - - verified: 2 - username: jenkins - newer-than: 24h approval: - workflow: 1 - event: comment-added approval: - verified: 1 - username_filter: jenkins + username: jenkins start: gerrit: verified: 0 @@ -138,7 +126,7 @@ pipelines: gerrit: - event: patchset-created - event: comment-added - comment_filter: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*recheck(( (?:bug|lp)[\s#:]*(\d+))|( no bug))\s*$ + comment: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*recheck(( (?:bug|lp)[\s#:]*(\d+))|( no bug))\s*$ - name: experimental description: On-demand pipeline for requesting a run against a set of jobs that are not yet gating. Leave review comment of "check experimental" to run jobs in this pipeline. @@ -147,7 +135,7 @@ pipelines: trigger: gerrit: - event: comment-added - comment_filter: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*check experimental\s*$ + comment: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*check experimental\s*$ success: gerrit: {} failure: @@ -208,7 +196,7 @@ pipelines: - event: patchset-created - event: change-restored - event: comment-added - comment_filter: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*recheck(( (?:bug|lp)[\s#:]*(\d+))|( no bug))\s*$ + comment: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*recheck(( (?:bug|lp)[\s#:]*(\d+))|( no bug))\s*$ success: gerrit: {} failure: @@ -224,7 +212,7 @@ pipelines: trigger: gerrit: - event: comment-added - comment_filter: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*check experimental\s*$ + comment: (?i)^(Patch Set [0-9]+:)?( [\w\\+-]*)*(\n\n)?\s*check experimental\s*$ success: gerrit: {} failure: