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