blob: 99012da55559d47f8b3560e0c5e9d359b441c72a [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
6 description:
7 Triggers whenever a code change is merged into the master branch of the
8 TF-A-Tests repository. Executes a webhook to trigger the ReadTheDocs
9 service to build a fresh copy of the documentation for one or more
10 branches.
11 disabled: false
12 builders:
13 - shell: |-
14 #!/bin/bash -e
15 echo "Notifying ReadTheDocs of changes on: $RTD_BRANCHES"
16 curl -X POST -d "branches=$RTD_BRANCHES" -d "token=$RTD_TOKEN" https://readthedocs.org/api/v2/webhook/trustedfirmware-a-tests/104345/
17 properties:
18 - build-discarder:
19 days-to-keep: 7
20 num-to-keep: 10
21 triggers:
22 - gerrit:
23 silent: true
24 server-name: 'review.trustedfirmware.org'
25 projects:
26 - branches:
27 - branch-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +000028 branch-pattern: openci-migration
Theodore Grey98802842022-03-29 12:46:03 +020029 project-compare-type: PLAIN
Saheer Babufd524222025-01-21 23:42:41 +000030 project-pattern: 'next/TF-A/tf-a-tests'
Theodore Grey98802842022-03-29 12:46:03 +020031 trigger-on:
32 - ref-updated-event
33 wrappers:
34 - timestamps
35 - credentials-binding:
36 - text:
37 credential-id: Trusted_Firmware_Tests_ReadTheDocs_Token
38 variable: RTD_TOKEN
39 parameters:
40 - string:
41 name: RTD_BRANCHES
42 default: master
43 description: |
44 The branch, or branches, to rebuild the documentation for.
45 publishers:
46 - workspace-cleanup