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