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):

Table of Contents

  1. email
  2. webhook
{
    "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 317a65b12acde1851bcf637602605f9fc8a7d3d6
Author: Drew DeVault <sir@cmpwn.com>
Date:   2019-09-11T22:30:51+00:00

builds.sr.ht/manifest.md: add newline
Clone this wiki
https://git.sr.ht/~sircmpwn/sr.ht-docs (read-only)
git@git.sr.ht:~sircmpwn/sr.ht-docs (read/write)