Merge "Add OVS 2.5.0 and hardware_vtep DB to Docker images."
[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         - opendaylight-infra-parameters:
27             project: '{project}'
28             branch: '{branch}'
29             refspec: 'refs/heads/{branch}'
30             artifacts: '{archive-artifacts}'
31
32     wrappers:
33         - opendaylight-infra-wrappers:
34             build-timeout: '30'
35
36     triggers:
37         - gerrit:
38             server-name: 'OpenDaylight'
39             trigger-on:
40                 - change-merged-event
41                 - comment-added-contains-event:
42                     comment-contains-value: 'remerge'
43             projects:
44               - project-compare-type: 'ANT'
45                 project-pattern: '**'
46                 branches:
47                   - branch-compare-type: 'ANT'
48                     branch-pattern: '**/{branch}'
49                 file-paths:
50                     - compare-type: ANT
51                       pattern: docs/**
52
53     builders:
54         - shell: |
55             curl -X POST https://readthedocs.org/build/{rtdproject}
56
57     publishers:
58         - email-notification:
59             email-prefix: '[docs]'
60         - archive-build:
61             maven-version: '{mvn33}'
62
63 - job-template:
64     name: 'docs-verify-rtd-{stream}'
65     node: dynamic_verify
66
67     project-type: freestyle
68
69     logrotate:
70         daysToKeep: 14
71
72     parameters:
73         - opendaylight-infra-parameters:
74             project: '{project}'
75             branch: '{branch}'
76             refspec: 'refs/heads/{branch}'
77             artifacts: '{archive-artifacts}'
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]'
128         - archive-build:
129             maven-version: '{mvn33}'