From 9503bf9d005564462b3c55444b24a23d86f67590 Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Mon, 13 Jan 2020 07:37:00 +0000 Subject: [PATCH] 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 --- jjb/cloud-infra/cloud-infra-verify-lint.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/jjb/cloud-infra/cloud-infra-verify-lint.yaml b/jjb/cloud-infra/cloud-infra-verify-lint.yaml index 1708ee5d3..d30ad8501 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}' -- 2.25.1