From 623a1e669cf24e802e8c3ae0fc26ad2ee354e333 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Thu, 12 Jul 2018 18:47:03 -0400 Subject: [PATCH] project-pattern configurable for license-check Allow the project-pattern to be configurable for the license-check job. In an ideal world we would have have a single job that will enforce for all projects but initially we will need flexibility to allow us to adjust as we enforce against existing projects. Change-Id: Ibf83868bacf520c69ef729566207ce7cc7ecf57e Signed-off-by: Thanh Ha --- docs/jjb/lf-ci-jobs.rst | 2 ++ jjb/lf-ci-jobs.yaml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/jjb/lf-ci-jobs.rst b/docs/jjb/lf-ci-jobs.rst index d7d4b03b..d426b969 100644 --- a/docs/jjb/lf-ci-jobs.rst +++ b/docs/jjb/lf-ci-jobs.rst @@ -477,6 +477,8 @@ Job to scan projects for files missing license headers. (default: '') :licenses-allowed: Comma-separated list of allowed licenses. (default: Apache-2.0,EPL-1.0,MIT) + :project-pattern: The ANT based pattern for Gerrit Trigger to choose which + projects to trigger job against. (default: '**') .. _gjjb-packer-merge: diff --git a/jjb/lf-ci-jobs.yaml b/jjb/lf-ci-jobs.yaml index be002556..0c2ae334 100644 --- a/jjb/lf-ci-jobs.yaml +++ b/jjb/lf-ci-jobs.yaml @@ -743,6 +743,7 @@ lhc-version: 0.2.0 license-exclude-paths: '' licenses-allowed: Apache-2.0,EPL-1.0,MIT + project-pattern: '**' spdx-disable: false stream: master @@ -812,7 +813,7 @@ comment-contains-value: recheck$ projects: - project-compare-type: ANT - project-pattern: '**' + project-pattern: '{project-pattern}' branches: - branch-compare-type: ANT branch-pattern: '**' -- 2.16.6