blob: 28b8965b9653ff107ff811ba9108fe1a025d3557 [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
11 echo "Notifying ReadTheDocs of changes on: $RTD_BRANCHES"
12 curl -X POST -d "branches=$RTD_BRANCHES" -d "token=$RTD_TOKEN" https://readthedocs.org/api/v2/webhook/trustedfirmware-a-tests/104345/
Theodore Grey98802842022-03-29 12:46:03 +020013 properties:
Chris Kay675db4f2025-06-24 14:14:34 +010014 - build-discarder:
15 days-to-keep: 7
16 num-to-keep: 10
Theodore Grey98802842022-03-29 12:46:03 +020017 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +010018 - gerrit:
19 silent: true
20 server-name: review.trustedfirmware.org
21 projects:
22 - branches:
23 - branch-compare-type: PLAIN
24 branch-pattern: master
25 project-compare-type: PLAIN
26 project-pattern: TF-A/tf-a-tests
27 trigger-on:
28 - ref-updated-event
Theodore Grey98802842022-03-29 12:46:03 +020029 wrappers:
Chris Kay675db4f2025-06-24 14:14:34 +010030 - timestamps
31 - credentials-binding:
32 - text:
33 credential-id: Trusted_Firmware_Tests_ReadTheDocs_Token
34 variable: RTD_TOKEN
Theodore Grey98802842022-03-29 12:46:03 +020035 parameters:
Chris Kay675db4f2025-06-24 14:14:34 +010036 - string:
37 name: RTD_BRANCHES
38 default: master
39 description: |
40 The branch, or branches, to rebuild the documentation for.
Theodore Grey98802842022-03-29 12:46:03 +020041 publishers:
Chris Kay675db4f2025-06-24 14:14:34 +010042 - workspace-cleanup