blob: b72f81f97844456428f05a707a0eb27cff686d3b [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
Arthur Shec707d6a2025-03-04 03:45:09 +080014 echo "Trigger ReadTheDocs build on branch: $RTD_BRANCHES"
15 RTD_API="https://readthedocs.org/api/v3/projects/trustedfirmware-a"
16 curl -s -X POST -H "Authorization: Token ${RTD_TOKEN}" ${RTD_API}/versions/$RTD_BRANCHES/builds/ | jq .
Theodore Greyd88e6d02022-02-01 14:13:52 +010017 properties:
18 - build-discarder:
Paul Sokolovskyd1bb6e92023-07-16 20:33:03 +030019 days-to-keep: 60
Theodore Greyd88e6d02022-02-01 14:13:52 +010020 num-to-keep: 10
21 triggers:
22 - gerrit:
23 silent: true
24 server-name: 'review.trustedfirmware.org'
25 projects:
26 - branches:
Theodore Greydf91fdc2022-02-22 10:27:06 +010027 - branch-compare-type: PLAIN
28 branch-pattern: 'master'
Theodore Greyd88e6d02022-02-01 14:13:52 +010029 project-compare-type: PLAIN
30 project-pattern: 'TF-A/trusted-firmware-a'
31 trigger-on:
32 - ref-updated-event
33 wrappers:
34 - timestamps
35 - credentials-binding:
36 - text:
Arthur Shec707d6a2025-03-04 03:45:09 +080037 credential-id: TF-A-RTD-API-TOKEN
Theodore Greyd88e6d02022-02-01 14:13:52 +010038 variable: RTD_TOKEN
39 parameters:
40 - string:
41 name: RTD_BRANCHES
42 default: master
43 description: |
44 The branch, or branches, to rebuild the documentation for.
45 publishers:
46 - workspace-cleanup