blob: 93bacb7648b5818667b6e5bf1d81e38bfb4e0fe2 [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
Chris Kay675db4f2025-06-24 14:14:34 +01006 description: Triggers whenever a code change is merged into the master branch of the TF-A repository. Executes a webhook to trigger the ReadTheDocs service to build a fresh copy of the documentation for one or more branches.
Theodore Greya3451372022-02-22 10:19:47 +01007 disabled: false
Theodore Greyd88e6d02022-02-01 14:13:52 +01008 builders:
Chris Kay675db4f2025-06-24 14:14:34 +01009 - shell: |-
10 #!/bin/bash -e
11 echo "Trigger ReadTheDocs build on the $RTD_BRANCHES branch and the latest version"
12 RTD_API="https://readthedocs.org/api/v3/projects/trustedfirmware-a"
13 echo "Trigger build $RTD_BRANCHES branch"
14 curl -s -X POST -H "Authorization: Token ${RTD_TOKEN}" ${RTD_API}/versions/$RTD_BRANCHES/builds/ | jq .
15 echo "Trigger build latest version"
16 curl -s -X POST -H "Authorization: Token ${RTD_TOKEN}" ${RTD_API}/versions/latest/builds/ | jq .
Theodore Greyd88e6d02022-02-01 14:13:52 +010017 properties:
Chris Kay675db4f2025-06-24 14:14:34 +010018 - build-discarder:
19 days-to-keep: 60
20 num-to-keep: 10
Theodore Greyd88e6d02022-02-01 14:13:52 +010021 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +010022 - gerrit:
23 silent: true
24 server-name: review.trustedfirmware.org
25 projects:
26 - branches:
27 - branch-compare-type: PLAIN
28 branch-pattern: master
29 project-compare-type: PLAIN
30 project-pattern: TF-A/trusted-firmware-a
31 trigger-on:
32 - ref-updated-event
Theodore Greyd88e6d02022-02-01 14:13:52 +010033 wrappers:
Chris Kay675db4f2025-06-24 14:14:34 +010034 - timestamps
35 - credentials-binding:
36 - text:
37 credential-id: TF-A-RTD-API-TOKEN
38 variable: RTD_TOKEN
Theodore Greyd88e6d02022-02-01 14:13:52 +010039 parameters:
Chris Kay675db4f2025-06-24 14:14:34 +010040 - string:
41 name: RTD_BRANCHES
42 default: master
43 description: |
44 The branch, or branches, to rebuild the documentation for.
Theodore Greyd88e6d02022-02-01 14:13:52 +010045 publishers:
Chris Kay675db4f2025-06-24 14:14:34 +010046 - workspace-cleanup