Merge "Remove email publisher from jenkins job"
[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         - danube:
9             branch: 'master'
10         - colorado:
11             branch: 'stable/colorado'
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         - project-parameter:
24             project: '{project}'
25             branch: '{branch}'
26     scm:
27         - git-scm
28
29     triggers:
30         - gerrit-trigger-change-merged
31
32     builders:
33         - shell: !include-raw: docs-post-rtd.sh
34
35 - job-template:
36     name: 'docs-verify-rtd-{stream}'
37
38     project-type: freestyle
39
40     parameters:
41         - project-parameter:
42             project: '{project}'
43             branch: '{branch}'
44     scm:
45         - git-scm
46
47     triggers:
48         - gerrit-trigger-patchset-created:
49             server: 'gerrit.opnfv.org'
50             project: '**'
51             branch: '{branch}'
52             files: 'docs/**/*.rst'
53         - timed: 'H H * * *'
54
55     builders:
56         - shell: |
57             if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
58                 cd opnfvdocs/submodules/$GERRIT_PROJECT
59                 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
60             else
61                 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
62             fi
63         - shell: |
64             virtualenv $WORKSPACE/venv
65             source $WORKSPACE/venv/bin/activate
66             pip install --upgrade pip
67             pip freeze
68             pip install tox
69             tox -edocs