Merge "Replaces lf-build1/2 references with lf-build5/6"
[releng.git] / jjb / opnfvdocs / docs-rtd.yaml
1 ---
2 - project:
3     name: docs-rtd
4     project: 'opnfvdocs'
5     project-name: 'opnfvdocs'
6     rtd-build-url: 'https://readthedocs.org/api/v2/webhook/opnfvdocsdemo/79560/'
7     rtd-token: 'a96c3622a270344cf9bf3f73b0dfa04f59fc59c0'
8     project-pattern: 'opnfvdocs'
9     jobs:
10       - '{project-name}-rtd-jobs'
11       - 'docs-merge-rtd-{stream}'
12       - 'docs-verify-rtd-{stream}'
13
14     stream:
15       - master:
16           branch: 'master'
17       - iruya:
18           branch: 'stable/{stream}'
19       - jerma:
20           branch: 'stable/{stream}'
21
22 - job-template:
23     name: 'docs-merge-rtd-{stream}'
24
25     project-type: freestyle
26
27     parameters:
28       - label:
29           name: SLAVE_LABEL
30           default: 'lf-build5'
31           description: 'Slave label on Jenkins'
32           all-nodes: false
33           node-eligibility: 'ignore-offline'
34       - project-parameter:
35           project: '{project}'
36           branch: '{branch}'
37
38     triggers:
39       - gerrit-trigger-change-merged:
40           project: '**'
41           branch: '{branch}'
42           files: 'docs/**/*.*'
43
44     builders:
45       - 'remove-old-docs-from-opnfv-artifacts'
46
47 - job-template:
48     name: 'docs-verify-rtd-{stream}'
49
50     project-type: freestyle
51
52     parameters:
53       - label:
54           name: SLAVE_LABEL
55           default: 'lf-build5'
56           description: 'Slave label on Jenkins'
57           all-nodes: false
58           node-eligibility: 'ignore-offline'
59       - project-parameter:
60           project: '{project}'
61           branch: '{branch}'
62       - string:
63           name: GIT_BASE
64           default: https://gerrit.opnfv.org/gerrit/opnfvdocs
65           description: 'Git URL to use on this Jenkins Slave'
66
67     scm:
68       - git-scm-with-submodules:
69           branch: '{branch}'
70
71     triggers:
72       - gerrit-trigger-patchset-created:
73           server: 'gerrit.opnfv.org'
74           project: 'opnfvdocs'
75           branch: '{branch}'
76           files: 'docs/**'
77
78     builders:
79       - shell: |
80           sudo -H pip install virtualenv
81           virtualenv $WORKSPACE/venv
82           . $WORKSPACE/venv/bin/activate
83           pip install --upgrade pip
84           pip freeze
85           pip install tox
86           sed -i s,\-b\ html,\-b\ singlehtml,g tox.ini
87           tox -edocs
88       - 'upload-review-docs'