Merge "Temporarily remove validate-autorelease for IoTDM"
[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
79     project-type: freestyle
80
81     properties:
82       - opendaylight-infra-properties:
83           build-days-to-keep: 14
84
85     parameters:
86       - opendaylight-infra-parameters:
87           os-cloud: '{os-cloud}'
88           project: '{project}'
89           branch: '{branch}'
90           refspec: 'refs/heads/{branch}'
91           artifacts: '{archive-artifacts}'
92
93     scm:
94       - git-scm-with-submodules:
95           branch: '{branch}'
96
97     wrappers:
98       - opendaylight-infra-wrappers:
99           build-timeout: '{build-timeout}'
100
101     triggers:
102       - gerrit-trigger-patch-submitted:
103           server: '{server-name}'
104           project: '**'
105           branch: '{branch}'
106           files: 'docs/**/*.rst'
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-recipients: '{email-recipients}'
128           email-prefix: '[docs]'
129       - opendaylight-infra-shiplogs:
130           maven-version: 'mvn33'