Triggers
Triggers must inherit from BaseTrigger
and, at a minimum,
implement the getEventFilters()
method.
- class zuul.trigger.BaseTrigger(driver, connection, config=None)
Base class for triggers.
Defines the exact public methods that must be supplied.
- abstract getEventFilters(connection_name, trigger_conf)
Return a list of EventFilter’s for the scheduler to match against.
- onChangeEnqueued(change, pipeline, event)
Called when a change has been enqueued.
- onChangeMerged(change, source)
Called when a change has been merged.
- postConfig(pipeline)
Called after config is loaded.
Current list of triggers are:
- class zuul.driver.gerrit.gerrittrigger.GerritTrigger(driver, connection, config=None)
- getEventFilters(connection_name, trigger_conf)
Return a list of EventFilter’s for the scheduler to match against.