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