Fine tune repos to enable lint jobs 56/3356/1
authorFatih Degirmenci <fdegir@gmail.com>
Mon, 13 Jan 2020 07:37:00 +0000 (07:37 +0000)
committerFatih Degirmenci <fdegir@gmail.com>
Mon, 13 Jan 2020 07:37:00 +0000 (07:37 +0000)
Some lint jobs are not applicable to all repos such as
shellcheck should not be run against infra/hwconfig as
there is no shell scripts there.

Change-Id: I4eaf1fef61b2d05c72c9e1a395b25cb0a546eb7f

jjb/cloud-infra/cloud-infra-verify-lint.yaml

index 1708ee5d368e1d6653ce4a0312997b74dbfc4d12..d30ad8501030063d00e98970df46eb309e7b0a4c 100644 (file)
           disabled: false
 
     lint-type:
-      - ansible-lint
-      - yamllint
-      - shellcheck
+      - ansible-lint:
+          repos-to-enable: 'infra\/engine|infra\/test|infra\/swconfig'
+      - yamllint:
+          repos-to-enable: 'infra\/engine|infra\/test|infra\/swconfig|infra\/hwconfig'
+      - shellcheck:
+          repos-to-enable: 'infra\/engine|infra\/test|infra\/swconfig'
 
     jobs:
       - 'cloud-infra-verify-engine-{lint-type}-{stream}'
@@ -85,7 +88,7 @@
                 comment-contains-value: 'reverify'
           projects:
             - project-compare-type: 'REG_EXP'
-              project-pattern: 'infra\/engine|infra\/test|infra\/swconfig|infra\|hwconfig|infra\/installer\/kubespray|infra\/installer\/kolla|infra\/provisioner\/bifrost|infra\/provisioner\/heat'
+              project-pattern: '{repos-to-enable}'
               branches:
                 - branch-compare-type: 'ANT'
                   branch-pattern: '**/{branch}'