gsutil not in path?
[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
58 - job-template:
59     name: 'opnfvdocs-verify'
60
61     project-type: freestyle
62
63     logrotate:
64         daysToKeep: 30
65         numToKeep: 10
66         artifactDaysToKeep: -1
67         artifactNumToKeep: -1
68
69     parameters:
70         - project-parameter:
71             project: '{project}'
72         - gerrit-parameter:
73             branch: 'master'
74     scm:
75         - gerrit-trigger-scm:
76             credentials-id: '{ssh-credentials}'
77             refspec: '$GERRIT_REFSPEC'
78             choosing-strategy: 'gerrit'
79
80     wrappers:
81         - ssh-agent-credentials:
82             user: '{ssh-credentials}'
83
84     triggers:
85         - gerrit:
86             trigger-on:
87                 - patchset-created-event:
88                     exclude-drafts: 'false'
89                     exclude-trivial-rebase: 'false'
90                     exclude-no-code-change: 'false'
91                 - draft-published-event
92                 - comment-added-contains-event:
93                     comment-contains-value: 'recheck'
94                 - comment-added-contains-event:
95                     comment-contains-value: 'reverify'
96             projects:
97               - project-compare-type: 'ANT'
98                 project-pattern: 'opnfvdocs'
99                 branches:
100                   - branch-compare-type: 'ANT'
101                     branch-pattern: '**/master'
102
103     builders:
104         - shell:
105             !include-raw build-docu.sh
106
107 - job-template:
108     name: 'opnfvdocs-merge'
109
110     # builder-merge job to run JJB update
111     #
112     # This job's purpose is to update all the JJB
113
114     project-type: freestyle
115
116     logrotate:
117         daysToKeep: 30
118         numToKeep: 40
119         artifactDaysToKeep: -1
120         artifactNumToKeep: 5
121
122     parameters:
123         - project-parameter:
124             project: '{project}'
125         - gerrit-parameter:
126             branch: 'master'
127
128     scm:
129         - gerrit-trigger-scm:
130             credentials-id: '{ssh-credentials}'
131             refspec: ''
132             choosing-strategy: 'default'
133
134     wrappers:
135         - ssh-agent-credentials:
136             user: '{ssh-credentials}'
137
138     triggers:
139         - gerrit:
140             trigger-on:
141                 - change-merged-event
142                 - comment-added-contains-event:
143                     comment-contains-value: 'remerge'
144             projects:
145               - project-compare-type: 'ANT'
146                 project-pattern: 'opnfvdocs'
147                 branches:
148                     - branch-compare-type: 'ANT'
149                       branch-pattern: '**/master'
150
151     builders:
152         - shell:
153             !include-raw build-docu.sh
154         - shell: |
155            /usr/local/bin/gsutil cp docs/*.pdf gs://artifacts.opnfv.org/opnfvdocs/docs/
156            /usr/local/bin/gsutil cp docs/*.html gs://artifacts.opnfv.org/opnfvdocs/docs/
157
158