Skip to content

Commit

Permalink
Merge pull request openstack-k8s-operators#374 from raukadah/trigger_job
Browse files Browse the repository at this point in the history
Enable Downstream trigger job in the architecture repo

In order to test VA HCI related changes, we used to run testproject in the downstream.
downstream-va-hci-trigger-job drops the need of running testproject for VA HCI related changes.
An developer can trigger the job by adding trigger github-experimental in the pull request comment section. The trigger job will create a review on
https://review.rdoproject.org/r/q/project:tripleo-downstream-trigger-nested-virt repo with proper depends-on with the origin pr and dependendent change.
From tripleo-downstream-trigger-nested-virt gerrit review, it will start VA HCI job downstream in rdo-check pipeline. Once the job finishes, It will post the results on the gerrit review. Devs can verify the results before merging it.
Note: It modifies create-zuul-jobs.py to include experimental jobs.

Reviewed-by: Cédric Jeanneret
Reviewed-by: Pablo Rodríguez Nava
Reviewed-by: Andrew Bays <[email protected]>
Reviewed-by: John Fulton <[email protected]>
Reviewed-by: Chandan Kumar
  • Loading branch information
2 parents 2de98f5 + 9643736 commit 4b43496
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion create-zuul-jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def create_job(name, data):
_PROJECTS.sort()
with open('./zuul.d/projects.yaml', 'w+') as zuul_projects:
struct = [{'project': {'github-check': {'jobs': _PROJECTS},
'github-gate': {'jobs': _PROJECTS}
'github-gate': {'jobs': _PROJECTS},
'github-experimental-trigger': {'jobs': ['architecture-downstream-va-hci-trigger-job']}
}
}
]
Expand Down
3 changes: 3 additions & 0 deletions zuul.d/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@
- rhoso-architecture-validate-uni05epsilon
- rhoso-architecture-validate-uni06zeta
- rhoso-architecture-validate-uni07eta
github-experimental-trigger:
jobs:
- architecture-downstream-va-hci-trigger-job
github-gate:
jobs: *id001
14 changes: 14 additions & 0 deletions zuul.d/trigger-jobs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- job:
name: architecture-downstream-va-hci-trigger-job
parent: downstream-va-hci-trigger-job
description: |
This job will trigger a VA HCI job downstream.
We can invoke this job by adding following comment
`\trigger github-experimental` in the github pull request comment.
These jobs runs in github-experimental-trigger pipeline.
files:
- ^automation/vars/hci.yaml
- ^lib
- ^examples/common
- ^examples/dt/hci
- ^va/hci

0 comments on commit 4b43496

Please sign in to comment.