From: Thanh Ha Date: Thu, 12 Jul 2018 22:47:03 +0000 (-0400) Subject: project-pattern configurable for license-check X-Git-Tag: v0.22.0~1^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=623a1e669cf24e802e8c3ae0fc26ad2ee354e333;p=releng%2Fglobal-jjb.git 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 --- 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: '**'