project-pattern configurable for license-check 69/11769/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 12 Jul 2018 22:47:03 +0000 (18:47 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 13 Jul 2018 16:07:41 +0000 (12:07 -0400)
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 <thanh.ha@linuxfoundation.org>
docs/jjb/lf-ci-jobs.rst
jjb/lf-ci-jobs.yaml

index d7d4b03..d426b96 100644 (file)
@@ -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)
         (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:
 
 
 .. _gjjb-packer-merge:
 
index be00255..0c2ae33 100644 (file)
     lhc-version: 0.2.0
     license-exclude-paths: ''
     licenses-allowed: Apache-2.0,EPL-1.0,MIT
     lhc-version: 0.2.0
     license-exclude-paths: ''
     licenses-allowed: Apache-2.0,EPL-1.0,MIT
+    project-pattern: '**'
     spdx-disable: false
     stream: master
 
     spdx-disable: false
     stream: master
 
                 comment-contains-value: recheck$
           projects:
             - project-compare-type: ANT
                 comment-contains-value: recheck$
           projects:
             - project-compare-type: ANT
-              project-pattern: '**'
+              project-pattern: '{project-pattern}'
               branches:
                 - branch-compare-type: ANT
                   branch-pattern: '**'
               branches:
                 - branch-compare-type: ANT
                   branch-pattern: '**'