From fb56fe043e48a6a812b59fbc8e3ccad745e32803 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 | 83 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 89 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..a4b69a7eb6 --- /dev/null +++ b/zuul.d/trigger_jobs.yaml @@ -0,0 +1,83 @@ +--- +- job: + name: downstream-va-hci-trigger-job + parent: trigger-job-base + description: | + Zuul job to trigger VA HCI job downstream + files: + - ^roles/artifacts/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/cert_manager/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/cifmw_ceph*/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/cifmw_external_dns/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/ci_gen_kustomize/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/ci_lvms_storage/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/ci_nmstate/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/config_drive/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/devscripts/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/discover_latest_image/(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/install_openstack_ca/(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).* + # It needs to be enabled in VA HCI IPv6 + # - ^roles/nat64_appliance/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/networking_mapper/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/openshift_adm/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/openshift_login/(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/run_hook/(defaults|files|handlers|library|lookup_plugins|module_utils|tasks|templates|vars).* + - ^roles/ssh_jumper/(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 + vars: + # It will create a file trigger_va_hci + trigger_job_name: "va_hci" + trigger_commit_msg: "Triggering VA HCI job" + +- job: + name: trigger-job-base + parent: create-nested-virt-trigger-from-github-pr + description: | + Base zuul job for trigger job which keeps the irrelevant files. + 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/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 +