From 19f61b90a66c7bf1ccae97ccdcce67c60b88f484 Mon Sep 17 00:00:00 2001 From: "Chandan Kumar (raukadah)" Date: Thu, 22 Aug 2024 06:48:38 +0530 Subject: [PATCH] Added VA HCI trigger experimental job It is based on the work done by @son-vyas https://github.com/openstack-k8s-operators/ci-playground/pull/12. It will help users to trigger VA HCI job by "trigger github-experimental". Signed-off-by: Chandan Kumar (raukadah) --- ci/templates/projects.yaml | 3 ++ zuul.d/projects.yaml | 3 ++ zuul.d/trigger_jobs.yaml | 62 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 zuul.d/trigger_jobs.yaml diff --git a/ci/templates/projects.yaml b/ci/templates/projects.yaml index 75ae430ae8..44d5c0b266 100644 --- a/ci/templates/projects.yaml +++ b/ci/templates/projects.yaml @@ -8,6 +8,9 @@ templates: - podified-multinode-edpm-ci-framework-pipeline - data-plane-adoption-ci-framework-pipeline + github-experimental-trigger: + jobs: + - downstream-va-hci-trigger-job github-check: jobs: - noop diff --git a/zuul.d/projects.yaml b/zuul.d/projects.yaml index 02b456a611..ee2e3980fe 100644 --- a/zuul.d/projects.yaml +++ b/zuul.d/projects.yaml @@ -1,4 +1,7 @@ - project: + github-experimental-trigger: + jobs: + - downstream-va-hci-trigger-job github-check: jobs: - noop diff --git a/zuul.d/trigger_jobs.yaml b/zuul.d/trigger_jobs.yaml new file mode 100644 index 0000000000..2232498aae --- /dev/null +++ b/zuul.d/trigger_jobs.yaml @@ -0,0 +1,62 @@ +--- +- job: + name: downstream-va-hci-trigger-job + parent: create-nested-virt-trigger-from-github-pr + files: + - ^roles/devscripts/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/dnsmasq/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/libvirt_manager/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/reproducer/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/virtualbmc/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^playbooks/06-deploy-architecture.yml + irrelevant-files: &ir_files + - .*/*.md + - ^.github/.*$ + - ^LICENSE$ + - ^OWNERS$ + - ^OWNERS_ALIASES$ + - ^PROJECT$ + - ^README.md$ + - ^renovate.json$ + - ^kuttl-test.yaml$ + - molecule/.* + - molecule-requirements.txt + - .github/workflows + - docs/.* + - contribute/.* + - roles/.*/molecule/.* + - ci/playbooks/pre-commit.yml + - ci/playbooks/pre-doc.yml + - ci/playbooks/run-doc.yml + - ci/playbooks/molecule-prepare.yml + - ci/playbooks/molecule-test.yml + # ci-framework + - .ansible-lint + - .config/molecule/.* + - .pre-commit-config.yaml + - .readthedocs.yaml + - .spellcheck.yml + - roles/dlrn_report + - roles/dlrn_promote + - roles/devscripts + - roles/dnsmasq + - roles/nat64_appliance + - roles/reproducer + - roles/virtualbmc + - roles/validations + - zuul.d/molecule.* + # Other openstack operators + - containers/ci + - .ci-operator.yaml + - .dockerignore + - .gitignore + - .golangci.yaml + - .pre-commit-config.yaml + - tests?\/functional + # openstack-ansibleee-operator + - examples + - mkdocs.yml + vars: + # It will create a file trigger_va_hci + trigger_job_name: "va_hci" + trigger_commit_msg: "Triggering VA HCI job"