A trigger is a series of callback events linked by logical operators into an expression. If the expression is evaluated and the result is found to be true, the callback is said to have been triggered.
Syntax
The syntax for specifying an event consists of:
name-type-context-extra
Refer to Trigger Event Syntax for more details.
Operators
Triggers can be logically AND'd or OR'd, and the boolean operators are:
- AND, &&
- OR, ||
- ( ) - not supported when using the job dependency attribute
Examples
When this job completes:
complete-job-self
When job 19294 starts running:
running-job-19294
When my #2 subjob completes:
complete-subjob-self-2
When the job with the label 'hello' is done:
done-job-hello
The events are then combined together with simple operators to define more complex scenarios:
When I complete and my parent completes:
complete-job-self AND complete-job-parent
When the job labeled "sibling" starts running, and I am done:
running-job-sibling AND done-job-self