blob: a86a416250f75ae24b185a6672ee88c20ccf4c8e [file] [log] [blame]
Theodore Grey15a535d2022-03-01 09:46:23 +01001- job:
Theodore Greyd88e6d02022-02-01 14:13:52 +01002 name: tf-a-docs-watcher
Paul Sokolovskybacbb152023-07-16 20:30:12 +03003 node: docker-amd64-tf-a-jammy
Theodore Greyd88e6d02022-02-01 14:13:52 +01004 project-type: freestyle
5 concurrent: false
6 description:
7 Triggers whenever a code change is merged into the master branch of the
8 TF-A repository. Executes a webhook to trigger the ReadTheDocs service to
9 build a fresh copy of the documentation for one or more branches.
Theodore Greya3451372022-02-22 10:19:47 +010010 disabled: false
Theodore Greyd88e6d02022-02-01 14:13:52 +010011 builders:
12 - shell: |-
13 #!/bin/bash -e
14 echo "Notifying ReadTheDocs of changes on: $RTD_BRANCHES"
15 curl -X POST -d "branches=$RTD_BRANCHES" -d "token=$RTD_TOKEN" https://readthedocs.org/api/v2/webhook/trustedfirmware-a/87181/
16 properties:
17 - build-discarder:
Paul Sokolovskyd1bb6e92023-07-16 20:33:03 +030018 days-to-keep: 60
Theodore Greyd88e6d02022-02-01 14:13:52 +010019 num-to-keep: 10
Saheer Babu8f1da6c2025-01-19 22:24:59 +000020 triggers:
21 - gerrit:
22 silent: true
23 server-name: 'review.trustedfirmware.org'
24 projects:
25 - branches:
26 - branch-compare-type: PLAIN
27 branch-pattern: 'master'
28 project-compare-type: PLAIN
29 project-pattern: 'TF-A/trusted-firmware-a'
Theodore Greyd88e6d02022-02-01 14:13:52 +010030 wrappers:
31 - timestamps
32 - credentials-binding:
33 - text:
34 credential-id: Trusted_Firmware_ReadTheDocs_Token
35 variable: RTD_TOKEN
36 parameters:
37 - string:
38 name: RTD_BRANCHES
39 default: master
40 description: |
41 The branch, or branches, to rebuild the documentation for.
42 publishers:
43 - workspace-cleanup