Skip to content

Latest commit

 

History

History

addons_webhook_trigger

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

addons_webhook_trigger

A webhook to trigger ci jobs when a new addon is available (i.e. merged) in GitLab.

Supported platforms

  • openshift ci
  • jenkins

Configuration

GitLab webhook

Add a webhook and mark Merge request events

Jobs configuration

  • 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>"