Fine tune repos to enable lint jobs
[infra/cicd.git] / 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}'