blob: 39fb52f5f22950ca599db4f7748fe797136127d9 [file] [log] [blame]
Leonardo Sandoval2a34a322021-05-17 12:16:20 -05001- job:
2 name: ci-users-guide
3 project-type: freestyle
4 defaults: global
5 properties:
6 - authorization:
7 anonymous:
8 - job-read
9 - job-extended-read
10 - build-discarder:
11 days-to-keep: 90
12 num-to-keep: 200
13 disabled: false
Arthur She5c867c72025-02-05 22:13:17 -080014 node: docker-amd64-tf-a-jammy
Leonardo Sandoval2a34a322021-05-17 12:16:20 -050015 concurrent: false
16 display-name: 'CI Users Guide publish deployment'
17 scm:
18 - git:
19 url: https://review.trustedfirmware.org/${GERRIT_PROJECT}
20 refspec: ${GERRIT_REFSPEC}
21 branches:
22 - ${GERRIT_BRANCH}
23 skip-tag: true
24 clean:
25 before: true
26 choosing-strategy: gerrit
27 basedir: tf-ci-users-guide
28 parameters:
29 - string:
30 name: GERRIT_PROJECT
31 default: 'ci/tf-ci-users-guide'
32 - string:
33 name: GERRIT_BRANCH
34 default: 'refs/heads/master'
35 - string:
36 name: GERRIT_REFSPEC
37 default: '+refs/heads/master:refs/remotes/origin/master'
38 - string:
39 name: READTHEDOCS_PROJECT
40 default: 'tf-ci-users-guide'
41 - string:
42 name: READTHEDOCS_API
43 default: 'https://readthedocs.org/api/v3/projects/${READTHEDOCS_PROJECT}/versions/latest/builds/'
44 triggers:
45 - gerrit:
46 server-name: 'review.trustedfirmware.org'
47 trigger-on:
48 - change-merged-event
49 projects:
50 - project-compare-type: 'PLAIN'
51 project-pattern: 'ci/tf-ci-users-guide'
52 branches:
53 - branch-compare-type: 'PLAIN'
54 branch-pattern: 'master'
55 silent-start: true
56 execution-strategy:
57 sequential: false
58 wrappers:
59 - timestamps
60 - credentials-binding:
61 - text:
62 credential-id: READTHEDOCS_TOKEN
63 variable: READTHEDOCS_TOKEN
64 builders:
65 - shell: |
66 #!/bin/bash -xe
67 curl -X POST -H "Authorization: Token ${READTHEDOCS_TOKEN}" ${READTHEDOCS_API}
68 publishers:
69 - email:
70 recipients: linaro-infrastructure-errors@lists.linaro.org