A webhook to trigger ci jobs when a new addon is available (i.e. merged) in GitLab.
- openshift ci
- jenkins
Add a webhook and mark Merge request events
- Create a yaml file example and update the relevant fields.
Jobs config:
products_jobs_mapping:
openshift-ci:
<addon name>: # Name that will be matched against merged versions
<ocm env>: # stage or production
- <openshift-ci job name>
- Export
ADDONS_WEBHOOK_JOBS_TRIGGER_CONFIG
environment variable which points to the configuration yaml file
export ADDONS_WEBHOOK_JOBS_TRIGGER_CONFIG="<path to yaml file>"