From f257ba1f18340d15f272677e06f83436d664da39 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Wed, 6 Sep 2017 19:49:27 -0400 Subject: [PATCH] Allow project-pattern to be overridable While the ** pattern is good for global docs projects like the OpenDaylight docs project. If projects have their own standalone documentation such as lftools we need to be able to set project-pattern to the exact project. This ensures that Gerrit won't start a lftools build when a trigger happens on any other project in the Gerrit system. Change-Id: I46c7d0d45eb7ea82230437648ff23e81baab07f1 Signed-off-by: Thanh Ha --- jjb/lf-rtd-jobs.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jjb/lf-rtd-jobs.yaml b/jjb/lf-rtd-jobs.yaml index 94365dc3..928b5673 100644 --- a/jjb/lf-rtd-jobs.yaml +++ b/jjb/lf-rtd-jobs.yaml @@ -91,6 +91,7 @@ # :build-node: The node to run build on. # :build-timeout: Timeout in seconds before aborting build. (default: 15) # :git-url: base URL of git project. (default: https://github.com) + # :project-pattern: Project to trigger build against. (default: **) # :stream: Keyword that can be used to represent a release code-name. # Often the same as the branch. (default: master) @@ -102,6 +103,7 @@ build-days-to-keep: 7 build-timeout: 15 git-url: https://github.com + project-pattern: '**' stream: master submodule-recursive: true @@ -129,7 +131,7 @@ comment-contains-value: 'remerge$' projects: - project-compare-type: 'ANT' - project-pattern: '**' + project-pattern: '{project-pattern}' branches: - branch-compare-type: 'ANT' branch-pattern: '**/{branch}' @@ -181,6 +183,7 @@ # :doc-dir: Directory where tox will place built docs. # as defined in the tox.ini (default: docs/_build/html) # :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) + # :project-pattern: Project to trigger build against. (default: **) # :stream: Keyword that can be used to represent a release code-name. # Often the same as the branch. (default: master) # :submodule-recursive: Whether to checkout submodules recursively. @@ -195,6 +198,7 @@ build-timeout: 15 doc-dir: docs/_build/html git-url: '$GIT_URL/$PROJECT' + project-pattern: '**' stream: master submodule-recursive: true @@ -232,7 +236,7 @@ comment-contains-value: 'recheck$' projects: - project-compare-type: 'ANT' - project-pattern: '**' + project-pattern: '{project-pattern}' branches: - branch-compare-type: 'ANT' branch-pattern: '**/{branch}' -- 2.16.6