blob: 34cbc74eeff7fd070237254fc2a10b98d0304f11 [file] [log] [blame]
Theodore Grey98802842022-03-29 12:46:03 +02001- job:
2 name: tf-a-tftf-docs-watcher
Paul Sokolovsky85b282b2023-08-05 07:20:17 +03003 node: docker-amd64-tf-a-jammy
Theodore Grey98802842022-03-29 12:46:03 +02004 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-Tests repository. Executes a webhook to trigger the ReadTheDocs service to build a fresh copy of the documentation for one or more branches.
Theodore Grey98802842022-03-29 12:46:03 +02007 disabled: false
8 builders:
Chris Kay675db4f2025-06-24 14:14:34 +01009 - shell: |-
10 #!/bin/bash -e
Arthur Shed40ae282025-07-03 06:54:43 -070011 echo "Trigger ReadTheDocs build on the $RTD_BRANCHES branch and the latest version"
12 RTD_API="https://readthedocs.org/api/v3/projects/trustedfirmware-a-tests"
13 curl -s -X POST -H "Authorization: Token ${RTD_TOKEN}" ${RTD_API}/versions/$RTD_BRANCHES/builds/ | jq .
14 echo "Trigger build latest version"
15 curl -s -X POST -H "Authorization: Token ${RTD_TOKEN}" ${RTD_API}/versions/latest/builds/ | jq .
Theodore Grey98802842022-03-29 12:46:03 +020016 properties:
Chris Kay675db4f2025-06-24 14:14:34 +010017 - build-discarder:
18 days-to-keep: 7
19 num-to-keep: 10
Theodore Grey98802842022-03-29 12:46:03 +020020 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +010021 - 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/tf-a-tests
30 trigger-on:
31 - ref-updated-event
Theodore Grey98802842022-03-29 12:46:03 +020032 wrappers:
Chris Kay675db4f2025-06-24 14:14:34 +010033 - timestamps
34 - credentials-binding:
35 - text:
36 credential-id: Trusted_Firmware_Tests_ReadTheDocs_Token
37 variable: RTD_TOKEN
Theodore Grey98802842022-03-29 12:46:03 +020038 parameters:
Chris Kay675db4f2025-06-24 14:14:34 +010039 - string:
40 name: RTD_BRANCHES
41 default: master
42 description: |
43 The branch, or branches, to rebuild the documentation for.
Theodore Grey98802842022-03-29 12:46:03 +020044 publishers:
Chris Kay675db4f2025-06-24 14:14:34 +010045 - workspace-cleanup