Theodore Grey | 15a535d | 2022-03-01 09:46:23 +0100 | [diff] [blame] | 1 | - job: |
Theodore Grey | d88e6d0 | 2022-02-01 14:13:52 +0100 | [diff] [blame] | 2 | name: tf-a-docs-watcher |
Paul Sokolovsky | bacbb15 | 2023-07-16 20:30:12 +0300 | [diff] [blame] | 3 | node: docker-amd64-tf-a-jammy |
Theodore Grey | d88e6d0 | 2022-02-01 14:13:52 +0100 | [diff] [blame] | 4 | 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 Grey | a345137 | 2022-02-22 10:19:47 +0100 | [diff] [blame] | 10 | disabled: false |
Theodore Grey | d88e6d0 | 2022-02-01 14:13:52 +0100 | [diff] [blame] | 11 | builders: |
| 12 | - shell: |- |
| 13 | #!/bin/bash -e |
Arthur She | bd64e1c | 2025-03-31 19:14:01 -0700 | [diff] [blame] | 14 | echo "Trigger ReadTheDocs build on the $RTD_BRANCHES branch and the latest version" |
Arthur She | c707d6a | 2025-03-04 03:45:09 +0800 | [diff] [blame] | 15 | RTD_API="https://readthedocs.org/api/v3/projects/trustedfirmware-a" |
Arthur She | bd64e1c | 2025-03-31 19:14:01 -0700 | [diff] [blame] | 16 | echo "Trigger build $RTD_BRANCHES branch" |
Arthur She | c707d6a | 2025-03-04 03:45:09 +0800 | [diff] [blame] | 17 | curl -s -X POST -H "Authorization: Token ${RTD_TOKEN}" ${RTD_API}/versions/$RTD_BRANCHES/builds/ | jq . |
Arthur She | bd64e1c | 2025-03-31 19:14:01 -0700 | [diff] [blame] | 18 | echo "Trigger build latest version" |
| 19 | curl -s -X POST -H "Authorization: Token ${RTD_TOKEN}" ${RTD_API}/versions/latest/builds/ | jq . |
Theodore Grey | d88e6d0 | 2022-02-01 14:13:52 +0100 | [diff] [blame] | 20 | properties: |
| 21 | - build-discarder: |
Paul Sokolovsky | d1bb6e9 | 2023-07-16 20:33:03 +0300 | [diff] [blame] | 22 | days-to-keep: 60 |
Theodore Grey | d88e6d0 | 2022-02-01 14:13:52 +0100 | [diff] [blame] | 23 | num-to-keep: 10 |
| 24 | triggers: |
| 25 | - gerrit: |
| 26 | silent: true |
| 27 | server-name: 'review.trustedfirmware.org' |
| 28 | projects: |
| 29 | - branches: |
Theodore Grey | df91fdc | 2022-02-22 10:27:06 +0100 | [diff] [blame] | 30 | - branch-compare-type: PLAIN |
Saheer Babu | fd52422 | 2025-01-21 23:42:41 +0000 | [diff] [blame] | 31 | branch-pattern: 'openci-migration' |
Theodore Grey | d88e6d0 | 2022-02-01 14:13:52 +0100 | [diff] [blame] | 32 | project-compare-type: PLAIN |
Saheer Babu | fd52422 | 2025-01-21 23:42:41 +0000 | [diff] [blame] | 33 | project-pattern: 'next/TF-A/trusted-firmware-a' |
Theodore Grey | d88e6d0 | 2022-02-01 14:13:52 +0100 | [diff] [blame] | 34 | trigger-on: |
| 35 | - ref-updated-event |
| 36 | wrappers: |
| 37 | - timestamps |
| 38 | - credentials-binding: |
| 39 | - text: |
Arthur She | c707d6a | 2025-03-04 03:45:09 +0800 | [diff] [blame] | 40 | credential-id: TF-A-RTD-API-TOKEN |
Theodore Grey | d88e6d0 | 2022-02-01 14:13:52 +0100 | [diff] [blame] | 41 | variable: RTD_TOKEN |
| 42 | parameters: |
| 43 | - string: |
| 44 | name: RTD_BRANCHES |
| 45 | default: master |
| 46 | description: | |
| 47 | The branch, or branches, to rebuild the documentation for. |
| 48 | publishers: |
| 49 | - workspace-cleanup |