Add debug data in functest-kubernetes jjbs
[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       - gambia:
18           branch: 'stable/{stream}'
19       - fraser:
20           branch: 'stable/{stream}'
21       - danube:
22           branch: 'stable/{stream}'
23
24 - job-template:
25     name: 'docs-merge-rtd-{stream}'
26
27     project-type: freestyle
28
29     parameters:
30       - label:
31           name: SLAVE_LABEL
32           default: 'lf-build1'
33           description: 'Slave label on Jenkins'
34           all-nodes: false
35           node-eligibility: 'ignore-offline'
36       - project-parameter:
37           project: '{project}'
38           branch: '{branch}'
39
40     triggers:
41       - gerrit-trigger-change-merged:
42           project: '**'
43           branch: '{branch}'
44           files: 'docs/**/*.*'
45
46     builders:
47       - 'remove-old-docs-from-opnfv-artifacts'
48
49 - job-template:
50     name: 'docs-verify-rtd-{stream}'
51
52     project-type: freestyle
53
54     parameters:
55       - label:
56           name: SLAVE_LABEL
57           default: 'lf-build2'
58           description: 'Slave label on Jenkins'
59           all-nodes: false
60           node-eligibility: 'ignore-offline'
61       - project-parameter:
62           project: '{project}'
63           branch: '{branch}'
64       - string:
65           name: GIT_BASE
66           default: https://gerrit.opnfv.org/gerrit/opnfvdocs
67           description: 'Git URL to use on this Jenkins Slave'
68
69     scm:
70       - git-scm-with-submodules:
71           branch: '{branch}'
72
73     triggers:
74       - gerrit-trigger-patchset-created:
75           server: 'gerrit.opnfv.org'
76           project: 'opnfvdocs'
77           branch: '{branch}'
78           files: 'docs/**'
79
80     builders:
81       - shell: |
82           sudo -H pip install virtualenv
83           virtualenv $WORKSPACE/venv
84           . $WORKSPACE/venv/bin/activate
85           pip install --upgrade pip
86           pip freeze
87           pip install tox
88           sed -i s,\-b\ html,\-b\ singlehtml,g tox.ini
89           tox -edocs
90       - 'upload-review-docs'