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