Merge "Adds cronjob for filling vnf table row entries"
[releng.git] / jjb / opnfvdocs / 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         - master:
9             branch: 'master'
10         - danube:
11             branch: 'stable/{stream}'
12
13     project: 'opnfvdocs'
14     rtdproject: 'opnfv'
15     # TODO: Archive Artifacts
16
17 - job-template:
18     name: 'docs-merge-rtd-{stream}'
19
20     project-type: freestyle
21
22     parameters:
23         - label:
24             name: SLAVE_LABEL
25             default: 'lf-build1'
26             description: 'Slave label on Jenkins'
27         - project-parameter:
28             project: '{project}'
29             branch: '{branch}'
30         - string:
31             name: GIT_BASE
32             default: https://gerrit.opnfv.org/gerrit/releng
33             description: 'Git URL to use on this Jenkins Slave'
34     scm:
35         - git-scm
36
37     triggers:
38         - gerrit-trigger-change-merged:
39             project: '**'
40             branch: '{branch}'
41             files: 'docs/**/*.*'
42
43     builders:
44         - shell: !include-raw: docs-post-rtd.sh
45
46 - job-template:
47     name: 'docs-verify-rtd-{stream}'
48
49     project-type: freestyle
50
51     parameters:
52         - label:
53             name: SLAVE_LABEL
54             default: 'lf-build2'
55             description: 'Slave label on Jenkins'
56         - project-parameter:
57             project: '{project}'
58             branch: '{branch}'
59         - string:
60             name: GIT_BASE
61             default: https://gerrit.opnfv.org/gerrit/opnfvdocs
62             description: 'Git URL to use on this Jenkins Slave'
63     scm:
64         - git-scm-with-submodules:
65             branch: '{branch}'
66
67     triggers:
68         - gerrit-trigger-patchset-created:
69             server: 'gerrit.opnfv.org'
70             project: '**'
71             branch: '{branch}'
72             files: 'docs/**/*.*'
73         - timed: 'H H * * *'
74
75     builders:
76         - shell: |
77             if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
78                 cd docs/submodules/$GERRIT_PROJECT
79                 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
80             else
81                 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
82             fi
83         - shell: |
84             sudo pip install virtualenv 
85             virtualenv $WORKSPACE/venv
86             . $WORKSPACE/venv/bin/activate
87             pip install --upgrade pip
88             pip freeze
89             pip install tox
90             tox -edocs