7f3d5191684a5387b9bc69e7f3b6616a2d84fe41
[releng/builder.git] / jjb / docs / docs-rtd.yaml
1 ---
2 - project:
3     name: docs-rtd
4     jobs:
5       - 'docs-merge-rtd-{stream}'
6       - 'docs-verify-rtd-{stream}'
7
8     stream:
9       - carbon:
10           branch: 'master'
11       - boron:
12           branch: 'stable/boron'
13       - beryllium:
14           branch: 'stable/beryllium'
15
16     project: 'docs'
17     rtdproject: 'opendaylight'
18     archive-artifacts: 'docs/_build/html/**'
19
20 - job-template:
21     name: 'docs-merge-rtd-{stream}'
22     node: centos7-java-builder-2c-8g
23
24     project-type: freestyle
25
26     properties:
27       - opendaylight-infra-properties:
28           build-days-to-keep: 14
29
30     parameters:
31       - opendaylight-infra-parameters:
32           project: '{project}'
33           branch: '{branch}'
34           refspec: 'refs/heads/{branch}'
35           artifacts: '{archive-artifacts}'
36
37     wrappers:
38       - opendaylight-infra-wrappers:
39           build-timeout: '30'
40
41     triggers:
42       - gerrit:
43           server-name: '{server-name}'
44           trigger-on:
45             - change-merged-event
46             - comment-added-contains-event:
47                 comment-contains-value: 'remerge'
48           projects:
49             - project-compare-type: 'ANT'
50               project-pattern: '**'
51               branches:
52                 - branch-compare-type: 'ANT'
53                   branch-pattern: '**/{branch}'
54               file-paths:
55                 - compare-type: ANT
56                   pattern: docs/**/*.rst
57
58     builders:
59       - shell: !include-raw: docs-post-rtd.sh
60
61     publishers:
62       - email-notification:
63           email-recipients: '{email-recipients}'
64           email-prefix: '[docs]'
65       - opendaylight-infra-shiplogs:
66           maven-version: 'mvn33'
67
68 - job-template:
69     # FIXME: Describe this job in docs/jenkins.rst
70     name: 'docs-verify-rtd-{stream}'
71     node: centos7-java-builder-2c-8g
72
73     project-type: freestyle
74
75     properties:
76       - opendaylight-infra-properties:
77           build-days-to-keep: 14
78
79     parameters:
80       - opendaylight-infra-parameters:
81           project: '{project}'
82           branch: '{branch}'
83           refspec: 'refs/heads/{branch}'
84           artifacts: '{archive-artifacts}'
85
86     scm:
87       - git-scm-with-submodules:
88           branch: '{branch}'
89
90     wrappers:
91       - opendaylight-infra-wrappers:
92           build-timeout: '{build-timeout}'
93
94     triggers:
95       - gerrit-trigger-patch-submitted:
96           server: '{server-name}'
97           project: '**'
98           branch: '{branch}'
99           files: 'docs/**/*.rst'
100       - timed: 'H H * * *'
101
102     builders:
103       - shell: |
104           if [ "$GERRIT_PROJECT" != "docs" ]; then
105               cd docs/submodules/$GERRIT_PROJECT
106               git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
107           else
108               git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
109           fi
110       - shell: |
111           virtualenv $WORKSPACE/venv
112           source $WORKSPACE/venv/bin/activate
113           pip install --upgrade pip
114           pip freeze
115           pip install tox
116           tox -edocs
117
118     publishers:
119       - email-notification:
120           email-recipients: '{email-recipients}'
121           email-prefix: '[docs]'
122       - opendaylight-infra-shiplogs:
123           maven-version: 'mvn33'