Fine tune repos to enable lint jobs
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
diff --git a/jjb/cloud-infra/cloud-infra-verify-lint.yaml b/jjb/cloud-infra/cloud-infra-verify-lint.yaml
index 1708ee5..d30ad85 100644
--- a/jjb/cloud-infra/cloud-infra-verify-lint.yaml
+++ b/jjb/cloud-infra/cloud-infra-verify-lint.yaml
@@ -28,9 +28,12 @@
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}'