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 |
| 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 Sokolovsky | d1bb6e9 | 2023-07-16 20:33:03 +0300 | [diff] [blame] | 18 | days-to-keep: 60 |
Theodore Grey | d88e6d0 | 2022-02-01 14:13:52 +0100 | [diff] [blame] | 19 | num-to-keep: 10 |
| 20 | triggers: |
| 21 | - gerrit: |
| 22 | silent: true |
| 23 | server-name: 'review.trustedfirmware.org' |
| 24 | projects: |
| 25 | - branches: |
Theodore Grey | df91fdc | 2022-02-22 10:27:06 +0100 | [diff] [blame] | 26 | - branch-compare-type: PLAIN |
| 27 | branch-pattern: 'master' |
Theodore Grey | d88e6d0 | 2022-02-01 14:13:52 +0100 | [diff] [blame] | 28 | project-compare-type: PLAIN |
| 29 | project-pattern: 'TF-A/trusted-firmware-a' |
| 30 | trigger-on: |
| 31 | - ref-updated-event |
| 32 | wrappers: |
| 33 | - timestamps |
| 34 | - credentials-binding: |
| 35 | - text: |
| 36 | credential-id: Trusted_Firmware_ReadTheDocs_Token |
| 37 | variable: RTD_TOKEN |
| 38 | parameters: |
| 39 | - string: |
| 40 | name: RTD_BRANCHES |
| 41 | default: master |
| 42 | description: | |
| 43 | The branch, or branches, to rebuild the documentation for. |
| 44 | publishers: |
| 45 | - workspace-cleanup |