Remove pipes, reference: http://ci.openstack.org/jenkins-job-builder/configuration...
[releng.git] / jjb / pharos / pharos.yml
1 - project:
2     name: pharos
3     jobs:
4         - 'pharos-test'
5         - 'pharos-daily-{stream}'
6         - 'pharos-merge'
7         - 'pharos-verify'
8         - 'pharos-build-docs'
9
10     # stream:    branch with - in place of / (eg. stable-helium)
11     # branch:    branch (eg. stable/helium)
12     stream:
13         - master:
14             branch: 'master'
15
16     project: 'pharos'
17     somevar: 'foo'
18
19 - job-template:
20     name: pharos-test
21
22     project-type: freestyle
23
24     logrotate:
25         daysToKeep: 30
26         numToKeep: 10
27         artifactDaysToKeep: -1
28         artifactNumToKeep: -1
29
30     builders:
31         - shell: |
32             echo "Hello world from pharos"
33
34 - job-template:
35     name: 'pharos-daily-{stream}'
36
37     # Job template for daily builders
38     #
39     # Required Variables:
40     #     stream:    branch with - in place of / (eg. stable)
41     #     branch:    branch (eg. stable)
42
43     project-type: freestyle
44     varsetabove: '{somevar}'
45
46     logrotate:
47         daysToKeep: '{build-days-to-keep}'
48         numToKeep: '{build-num-to-keep}'
49         artifactDaysToKeep: '{build-artifact-days-to-keep}'
50         artifactNumToKeep: '{build-artifact-num-to-keep}'
51
52     parameters:
53         - project-parameter:
54             project: '{project}'
55
56     scm:
57         - git-scm:
58             credentials-id: '{ssh-credentials}'
59             refspec: ''
60             branch: '{branch}'
61
62     wrappers:
63         - ssh-agent-credentials:
64             user: '{ssh-credentials}'
65
66     triggers:
67         - timed: 'H H * * *'
68
69     prebuilders:
70         - test-macro
71
72     builders:
73         - shell: |
74             pwd
75             find .
76             echo "Hello world from pharos {somevar} daily"
77
78     postbuilders:
79         - test-macro
80
81 - job-template:
82     name: 'pharos-verify'
83
84     project-type: freestyle
85
86     logrotate:
87         daysToKeep: 30
88         numToKeep: 10
89         artifactDaysToKeep: -1
90         artifactNumToKeep: -1
91
92     parameters:
93         - project-parameter:
94             project: '{project}'
95         - gerrit-parameter:
96             branch: 'master'
97     scm:
98         - gerrit-trigger-scm:
99             credentials-id: '{ssh-credentials}'
100             refspec: '$GERRIT_REFSPEC'
101             choosing-strategy: 'gerrit'
102
103     wrappers:
104         - ssh-agent-credentials:
105             user: '{ssh-credentials}'
106
107     triggers:
108         - gerrit:
109             trigger-on:
110                 - patchset-created-event:
111                     exclude-drafts: 'false'
112                     exclude-trivial-rebase: 'false'
113                     exclude-no-code-change: 'false'
114                 - draft-published-event
115                 - comment-added-contains-event:
116                     comment-contains-value: 'recheck'
117                 - comment-added-contains-event:
118                     comment-contains-value: 'reverify'
119             projects:
120               - project-compare-type: 'ANT'
121                 project-pattern: 'pharos'
122                 branches:
123                   - branch-compare-type: 'ANT'
124                     branch-pattern: '**/master'
125
126     builders:
127         - shell: |
128             pwd
129             find .
130             echo "verify logic goes here"
131
132 - job-template:
133     name: 'pharos-merge'
134
135     # builder-merge job to run JJB update
136     #
137     # This job's purpose is to update all the JJB
138
139     project-type: freestyle
140
141     logrotate:
142         daysToKeep: 30
143         numToKeep: 40
144         artifactDaysToKeep: -1
145         artifactNumToKeep: 5
146
147     parameters:
148         - project-parameter:
149             project: '{project}'
150         - gerrit-parameter:
151             branch: 'master'
152
153     scm:
154         - gerrit-trigger-scm:
155             credentials-id: '{ssh-credentials}'
156             refspec: ''
157             choosing-strategy: 'default'
158
159     wrappers:
160         - ssh-agent-credentials:
161             user: '{ssh-credentials}'
162
163     triggers:
164         - gerrit:
165             trigger-on:
166                 - change-merged-event
167                 - comment-added-contains-event:
168                     comment-contains-value: 'remerge'
169             projects:
170               - project-compare-type: 'ANT'
171                 project-pattern: 'pharos'
172                 branches:
173                     - branch-compare-type: 'ANT'
174                       branch-pattern: '**/master'
175
176     builders:
177         - shell: |
178             pwd
179             find .
180             echo "merge logic goes here"
181
182 - job-template:
183     name: 'pharos-build-docs'
184
185     project-type: freestyle
186
187     logrotate:
188         daysToKeep: 30
189         numToKeep: 40
190         artifactDaysToKeep: -1
191         artifactNumToKeep: 5
192
193     parameters:
194         - project-parameter:
195             project: '{project}'
196         - gerrit-parameter:
197             branch: 'master'
198
199     scm:
200         - gerrit-trigger-scm:
201             credentials-id: '{ssh-credentials}'
202             refspec: ''
203             choosing-strategy: 'default'
204
205     wrappers:
206         - ssh-agent-credentials:
207             user: '{ssh-credentials}'
208
209     triggers:
210         - gerrit:
211             trigger-on:
212                 - change-merged-event
213                 - comment-added-contains-event:
214                     comment-contains-value: 'remerge'
215             projects:
216               - project-compare-type: 'ANT'
217                 project-pattern: 'pharos'
218                 branches:
219                     - branch-compare-type: 'ANT'
220                       branch-pattern: '**/master'
221
222     builders:
223         - shell: 
224             !include-raw build-docu.sh
225
226
227
228