enabling docs-*-rtd jobs for stable/beryllium
[releng/builder.git] / jjb / docs / docs-rtd.yaml
1 - project:
2     name: docs-rtd
3     jobs:
4         - 'docs-merge-rtd-{stream}'
5         - 'docs-verify-rtd-{stream}'
6
7     stream:
8         - boron:
9             branch: 'master'
10         - beryllium:
11             branch: 'stable/beryllium'
12
13     project: 'docs'
14     rtdproject: 'opendaylight'
15
16 - job-template:
17     name: 'docs-merge-rtd-{stream}'
18     node: dynamic_verify
19
20     project-type: freestyle
21
22     logrotate:
23         daysToKeep: 14
24
25     parameters:
26         - project-parameter:
27             project: '{project}'
28         - gerrit-parameters:
29             project: '{project}'
30             branch: '{branch}'
31             refspec: 'refs/heads/{branch}'
32
33     wrappers:
34         - opendaylight-infra-wrappers:
35             build-timeout: '30'
36
37     triggers:
38         - gerrit:
39             server-name: 'OpenDaylight'
40             trigger-on:
41                 - change-merged-event
42                 - comment-added-contains-event:
43                     comment-contains-value: 'remerge'
44             projects:
45               - project-compare-type: 'ANT'
46                 project-pattern: '**'
47                 branches:
48                   - branch-compare-type: 'ANT'
49                     branch-pattern: '**/{branch}'
50                 file-paths:
51                     - compare-type: ANT
52                       pattern: docs/**
53
54     builders:
55         - shell: |
56             curl -X POST https://readthedocs.org/build/{rtdproject}
57
58     publishers:
59         - email-notification:
60             email-prefix: '[docs]'
61
62 - job-template:
63     name: 'docs-verify-rtd-{stream}'
64     node: dynamic_verify
65
66     project-type: freestyle
67
68     logrotate:
69         daysToKeep: 14
70
71     parameters:
72         - project-parameter:
73             project: '{project}'
74         - gerrit-parameters:
75             project: '{project}'
76             branch: '{branch}'
77             refspec: 'refs/heads/{branch}'
78
79     scm:
80         - git-scm-with-submodules:
81             branch: '{branch}'
82
83     wrappers:
84         - opendaylight-infra-wrappers:
85             build-timeout: '{build-timeout}'
86
87     triggers:
88         - gerrit:
89             server-name: 'OpenDaylight'
90             trigger-on:
91                 - patchset-created-event:
92                     exclude-drafts: 'true'
93                     exclude-trivial-rebase: 'true'
94                     exclude-no-code-change: 'true'
95                 - draft-published-event
96                 - comment-added-contains-event:
97                     comment-contains-value: 'recheck'
98             projects:
99               - project-compare-type: 'ANT'
100                 project-pattern: '**'
101                 branches:
102                   - branch-compare-type: 'ANT'
103                     branch-pattern: '**/{branch}'
104                 file-paths:
105                     - compare-type: ANT
106                       pattern: docs/**
107         - timed: 'H H * * *'
108
109     builders:
110         - shell: |
111             if [ "$GERRIT_PROJECT" != "docs" ]; then
112                 cd docs/submodules/$GERRIT_PROJECT
113                 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
114             else
115                 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
116             fi
117         - shell: |
118             virtualenv $WORKSPACE/venv
119             source $WORKSPACE/venv/bin/activate
120             pip install --upgrade pip
121             pip freeze
122             pip install tox
123             tox -edocs
124
125     publishers:
126         - email-notification:
127             email-prefix: '[docs]'