f3cdd2531859763167e15559498eefb8f464b3c8
[releng.git] / jjb / opnfvdocs / opnfvdocs.yml
1 - project:
2     name: opnfvdocs
3     jobs:
4         - 'opnfvdocs-daily-{stream}'
5         - 'opnfvdocs-merge'
6         - 'opnfvdocs-verify'
7
8     # stream:    branch with - in place of / (eg. stable-helium)
9     # branch:    branch (eg. stable/helium)
10     stream:
11         - master:
12             branch: 'master'
13
14     project: 'opnfvdocs'
15
16 - job-template:
17     name: 'opnfvdocs-daily-{stream}'
18
19     # Job template for daily builders
20     #
21     # Required Variables:
22     #     stream:    branch with - in place of / (eg. stable)
23     #     branch:    branch (eg. stable)
24
25     project-type: freestyle
26
27     logrotate:
28         daysToKeep: '{build-days-to-keep}'
29         numToKeep: '{build-num-to-keep}'
30         artifactDaysToKeep: '{build-artifact-days-to-keep}'
31         artifactNumToKeep: '{build-artifact-num-to-keep}'
32
33     parameters:
34         - project-parameter:
35             project: '{project}'
36
37     scm:
38         - git-scm:
39             credentials-id: '{ssh-credentials}'
40             refspec: ''
41             branch: '{branch}'
42
43     wrappers:
44         - ssh-agent-credentials:
45             user: '{ssh-credentials}'
46
47     triggers:
48         - timed: 'H H * * *'
49
50     builders:
51         - shell:
52             !include-raw build-docu.sh
53         - shell: |
54             echo $PATH
55             /usr/local/bin/gsutil cp docs/*.pdf gs://artifacts.opnfv.org/opnfvdocs/docs/
56             /usr/local/bin/gsutil cp docs/*.html gs://artifacts.opnfv.org/opnfvdocs/docs/
57             /usr/local/bin/gsutil cp docs/release/*.pdf gs://artifacts.opnfv.org/opnfvdocs/docs/release/
58             /usr/local/bin/gsutil cp docs/release/*.html gs://artifacts.opnfv.org/opnfvdocs/docs/release/
59             /usr/local/bin/gsutil cp requirements/*.pdf gs://artifacts.opnfv.org/opnfvdocs/requirements/
60             /usr/local/bin/gsutil cp requirements/*.html gs://artifacts.opnfv.org/opnfvdocs/requirements/
61             /usr/local/bin/gsutil cp design_docs/*.pdf gs://artifacts.opnfv.org/opnfvdocs/design_docs/
62             /usr/local/bin/gsutil cp design_docs/*.html gs://artifacts.opnfv.org/opnfvdocs/design_docs/
63
64 - job-template:
65     name: 'opnfvdocs-verify'
66
67     project-type: freestyle
68
69     logrotate:
70         daysToKeep: 30
71         numToKeep: 10
72         artifactDaysToKeep: -1
73         artifactNumToKeep: -1
74
75     parameters:
76         - project-parameter:
77             project: '{project}'
78         - gerrit-parameter:
79             branch: 'master'
80     scm:
81         - gerrit-trigger-scm:
82             credentials-id: '{ssh-credentials}'
83             refspec: '$GERRIT_REFSPEC'
84             choosing-strategy: 'gerrit'
85
86     wrappers:
87         - ssh-agent-credentials:
88             user: '{ssh-credentials}'
89
90     triggers:
91         - gerrit:
92             trigger-on:
93                 - patchset-created-event:
94                     exclude-drafts: 'false'
95                     exclude-trivial-rebase: 'false'
96                     exclude-no-code-change: 'false'
97                 - draft-published-event
98                 - comment-added-contains-event:
99                     comment-contains-value: 'recheck'
100                 - comment-added-contains-event:
101                     comment-contains-value: 'reverify'
102             projects:
103               - project-compare-type: 'ANT'
104                 project-pattern: 'opnfvdocs'
105                 branches:
106                   - branch-compare-type: 'ANT'
107                     branch-pattern: '**/master'
108
109     builders:
110         - shell:
111             !include-raw build-docu.sh
112
113 - job-template:
114     name: 'opnfvdocs-merge'
115
116     # builder-merge job to run JJB update
117     #
118     # This job's purpose is to update all the JJB
119
120     project-type: freestyle
121
122     logrotate:
123         daysToKeep: 30
124         numToKeep: 40
125         artifactDaysToKeep: -1
126         artifactNumToKeep: 5
127
128     parameters:
129         - project-parameter:
130             project: '{project}'
131         - gerrit-parameter:
132             branch: 'master'
133
134     scm:
135         - gerrit-trigger-scm:
136             credentials-id: '{ssh-credentials}'
137             refspec: ''
138             choosing-strategy: 'default'
139
140     wrappers:
141         - ssh-agent-credentials:
142             user: '{ssh-credentials}'
143
144     triggers:
145         - gerrit:
146             trigger-on:
147                 - change-merged-event
148                 - comment-added-contains-event:
149                     comment-contains-value: 'remerge'
150             projects:
151               - project-compare-type: 'ANT'
152                 project-pattern: 'opnfvdocs'
153                 branches:
154                     - branch-compare-type: 'ANT'
155                       branch-pattern: '**/master'
156
157     builders:
158         - shell:
159             !include-raw build-docu.sh
160         - shell: |
161            /usr/local/bin/gsutil cp docs/*.pdf gs://artifacts.opnfv.org/opnfvdocs/docs/
162            /usr/local/bin/gsutil cp docs/*.html gs://artifacts.opnfv.org/opnfvdocs/docs/
163            /usr/local/bin/gsutil cp docs/release/*.pdf gs://artifacts.opnfv.org/opnfvdocs/docs/release/
164            /usr/local/bin/gsutil cp docs/release/*.html gs://artifacts.opnfv.org/opnfvdocs/docs/release/
165            /usr/local/bin/gsutil cp requirements/*.pdf gs://artifacts.opnfv.org/opnfvdocs/requirements/
166            /usr/local/bin/gsutil cp requirements/*.html gs://artifacts.opnfv.org/opnfvdocs/requirements/
167            /usr/local/bin/gsutil cp design_docs/*.pdf gs://artifacts.opnfv.org/opnfvdocs/design_docs/
168            /usr/local/bin/gsutil cp design_docs/*.html gs://artifacts.opnfv.org/opnfvdocs/design_docs/
169
170