blob: 17eb68397a450ec167c18c0bd1b84638fbb6fd2c [file] [log] [blame]
Theodore Grey98802842022-03-29 12:46:03 +02001- job:
2 name: tf-a-tftf-docs-watcher
3 node: docker-amd64-tf-a-bionic
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-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
28 branch-pattern: master
29 project-compare-type: PLAIN
30 project-pattern: 'TF-A/tf-a-tests'
31 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