From: Thanh Ha Date: Wed, 6 Sep 2017 23:49:27 +0000 (-0400) Subject: Allow project-pattern to be overridable X-Git-Tag: v0.8.2^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F64%2F6364%2F2;p=releng%2Fglobal-jjb.git 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 --- 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}'