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