ref: 034d92ce14251297c41f68cfbf7e37df5fe80d0f sr.ht-docs/builds.sr.ht/triggers.md -rw-r--r-- 1.1 KiB
034d92ceDrew DeVault Add YAMl frontmatter to all pages 2 years ago

#title: Build triggers reference

At the end of a job or a job group, you can execute triggers based on the outcome of the job. The basic format is (in JSON):

    "action": "trigger type",
    "condition": "when to execute this trigger",
    [...action-specific configuration...]

Or in YAML:

  - action: trigger type
    condition: when to execute this trigger
    ...action-specific configuration...

Condition may be one of the following:

  • always: execute the trigger after every build
  • failure: execute the trigger after a failed build
  • success: execute the trigger after a successful build

The following actions are available:


Sends an email summarizing the build results.


  • to: The value of the "To" header in the outgoing email, e.g. your email address or e.g. Jim Jimson <jim@example.org>, Bob Bobson <bob@example.org>


Submits the job status (as it would be returned by GET /api/jobs/:id) as a POST request to a specified URL.


  • url: The URL to submit the HTTP request to