Skip to content

Commit 411974e

Browse files
committed
DNM Add molecule jobs from edpm-ansible
The edpm-ansible folks would like to run own job also when our changes are related to molecule job. Let's trigger some of they jobs here. Signed-off-by: Daniel Pawlik <[email protected]>
1 parent dfb9a8c commit 411974e

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

roles/cifmw_cephadm/molecule/default/molecule.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
# Mainly used to override the defaults set in .config/molecule/
33
# By default, it uses the "config_podman.yml" - in CI, it will use
4-
# "config_local.yml".
4+
# "config_local.yml"
5+
#
56
log: true
67

78
provisioner:

scripts/create_role_molecule.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
import logging
2121
from jinja2 import Environment, FileSystemLoader
2222

23+
additional_molecule_jobs = [
24+
"edpm-ansible-molecule-edpm_ovs",
25+
"edpm-ansible-molecule-edpm_update"
26+
]
2327

2428
def get_project_paths(project_dir=None):
2529
"""
@@ -90,7 +94,13 @@ def regenerate_projects_zuul_jobs_yaml(generated_paths):
9094
f"cifmw-molecule-{role_directory.name}"
9195
)
9296

93-
with open(generated_paths["zuul_job_dir"] / "projects.yaml", "w") as projects_file:
97+
if additional_molecule_jobs:
98+
for additional_job in additional_molecule_jobs:
99+
projects_jobs_info[0]["project"]["github-check"]["jobs"].append(
100+
additional_job)
101+
102+
with open(generated_paths["zuul_job_dir"] / "projects.yaml",
103+
"w") as projects_file:
94104
yaml.dump(projects_jobs_info, projects_file)
95105

96106

zuul.d/projects.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@
104104
- cifmw-molecule-update_containers
105105
- cifmw-molecule-validations
106106
- cifmw-molecule-virtualbmc
107+
- dpm-ansible-molecule-edpm_ovs
108+
- edpm-ansible-molecule-edpm_update
107109
github-post:
108110
jobs:
109111
- build-push-container-cifmw-client-post

0 commit comments

Comments
 (0)