Fix docs-rtd curly brace escape
[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     node: centos7-java-builder-2c-8g
22
23     project-type: freestyle
24
25     properties:
26         - opendaylight-infra-properties:
27             build-days-to-keep: 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: '{server-name}'
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/**/*.rst
56
57     builders:
58         - shell: !include-raw: docs-post-rtd.sh
59
60     publishers:
61         - email-notification:
62             email-recipients: '{email-recipients}'
63             email-prefix: '[docs]'
64         - opendaylight-infra-shiplogs:
65             maven-version: 'mvn33'
66
67 - job-template:
68     # FIXME: Describe this job in docs/jenkins.rst
69     name: 'docs-verify-rtd-{stream}'
70     node: centos7-java-builder-2c-8g
71
72     project-type: freestyle
73
74     properties:
75         - opendaylight-infra-properties:
76             build-days-to-keep: 14
77
78     parameters:
79         - opendaylight-infra-parameters:
80             project: '{project}'
81             branch: '{branch}'
82             refspec: 'refs/heads/{branch}'
83             artifacts: '{archive-artifacts}'
84
85     scm:
86         - git-scm-with-submodules:
87             branch: '{branch}'
88
89     wrappers:
90         - opendaylight-infra-wrappers:
91             build-timeout: '{build-timeout}'
92
93     triggers:
94         - gerrit-trigger-patch-submitted:
95             server: '{server-name}'
96             project: '**'
97             branch: '{branch}'
98             files: 'docs/**/*.rst'
99         - timed: 'H H * * *'
100
101     builders:
102         - shell: |
103             if [ "$GERRIT_PROJECT" != "docs" ]; then
104                 cd docs/submodules/$GERRIT_PROJECT
105                 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
106             else
107                 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
108             fi
109         - shell: |
110             virtualenv $WORKSPACE/venv
111             source $WORKSPACE/venv/bin/activate
112             pip install --upgrade pip
113             pip freeze
114             pip install tox
115             tox -edocs
116
117     publishers:
118         - email-notification:
119             email-recipients: '{email-recipients}'
120             email-prefix: '[docs]'
121         - opendaylight-infra-shiplogs:
122             maven-version: 'mvn33'