At the end of a job or a job group, you can execute triggers based on the outcome of the job.

Table of Contents

  1. email
  2. webhook

The basic format of a trigger is (in JSON):

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

Or in YAML:

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

Condition may be one of the following:

The following actions are available:

email

Sends an email summarizing the build results.

Configuration

webhook

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

Configuration

About this wiki

commit 102d3cc62224b241e2f78fcea35e429a60408447
Author: Drew DeVault <sir@cmpwn.com>
Date:   2020-01-23T17:27:17-05:00

Drop ubuntu/disco; EoL'd upstream
Clone this wiki
https://git.sr.ht/~sircmpwn/sr.ht-docs (read-only)
git@git.sr.ht:~sircmpwn/sr.ht-docs (read/write)