From: Anil Belur Date: Sat, 23 Jan 2021 09:55:11 +0000 (+1000) Subject: Add regex for common-packer var and templates X-Git-Tag: v0.60.5^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F99%2F66599%2F2;p=releng%2Fglobal-jjb.git Add regex for common-packer var and templates Add regex to trigger packer jobs when common-packer templates are updated. Change-Id: Ie9d79e0c2e4e525cd19c3ab10066b5df5ae65742 Signed-off-by: Anil Belur --- diff --git a/jjb/lf-ci-jobs.yaml b/jjb/lf-ci-jobs.yaml index 39ebc8f2..0e95e0fd 100644 --- a/jjb/lf-ci-jobs.yaml +++ b/jjb/lf-ci-jobs.yaml @@ -1572,6 +1572,14 @@ pattern: 'packer\/templates\/{templates}\.json' - compare-type: REG_EXP pattern: 'packer\/vars\/{platforms}\.json' + - compare-type: REG_EXP + pattern: 'packer\/common-packer\/provision\/{templates}\.yaml' + - compare-type: REG_EXP + pattern: 'packer\/common-packer\/provision\/local-{templates}\.yaml' + - compare-type: REG_EXP + pattern: 'packer\/common-packer\/templates\/{templates}\.json' + - compare-type: REG_EXP + pattern: 'packer\/common-packer\/vars\/{platforms}\.json' - job-template: name: "{project-name}-packer-merge-{platforms}-{templates}" @@ -1629,6 +1637,11 @@ - 'packer\/provision\/local-{templates}\.yaml' - 'packer\/templates\/{templates}\.json' - 'packer\/vars\/{platforms}\.json' + - 'packer\/common-packer\/provision\/{templates}\.yaml' + - 'packer\/common-packer\/provision\/local-{templates}\.yaml' + - 'packer\/common-packer\/templates\/{templates}\.json' + - 'packer\/common-packer\/vars\/{platforms}\.json' + white-list-target-branches: - "{branch}" @@ -1689,6 +1702,14 @@ pattern: 'packer\/templates\/{templates}\.json' - compare-type: REG_EXP pattern: 'packer\/vars\/{platforms}\.json' + - compare-type: REG_EXP + pattern: 'packer\/common-packer\/provision\/{templates}\.yaml' + - compare-type: REG_EXP + pattern: 'packer\/common-packer\/provision\/local-{templates}\.yaml' + - compare-type: REG_EXP + pattern: 'packer\/common-packer\/templates\/{templates}\.json' + - compare-type: REG_EXP + pattern: 'packer\/common-packer\/vars\/{platforms}\.json' - job-template: name: "{project-name}-packer-verify-build-{platforms}-{templates}" @@ -1737,6 +1758,10 @@ - 'packer\/provision\/local-{templates}\.yaml' - 'packer\/templates\/{templates}\.json' - 'packer\/vars\/{platforms}\.json' + - 'packer\/common-packer\/vars\/{platforms}\.json' + - 'packer\/common-packer\/provision\/{templates}\.yaml' + - 'packer\/common-packer\/provision\/local-{templates}\.yaml' + - 'packer\/common-packer\/templates\/{templates}\.json' ################# # Packer Verify # diff --git a/releasenotes/notes/add-regex-to-trigger-common-packer-updates-6ca049d422a00f67.yaml b/releasenotes/notes/add-regex-to-trigger-common-packer-updates-6ca049d422a00f67.yaml new file mode 100644 index 00000000..b9fbf172 --- /dev/null +++ b/releasenotes/notes/add-regex-to-trigger-common-packer-updates-6ca049d422a00f67.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - | + Add regex to trigger packer jobs when common-packer templates are updated.