6c7edaa675fe8ce767e58b4b2a57897ec06b950d
[releng.git] / jjb / fastpathmetrics / fastpathmetrics.yml
1 - project:
2     name: fastpathmetrics
3     jobs:
4         - 'fastpathmetrics-test'
5         - 'fastpathmetrics-daily-{stream}'
6         - 'fastpathmetrics-merge'
7         - 'fastpathmetrics-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: 'fastpathmetrics'
16     somevar: 'foo'
17
18 - job-template:
19     name: fastpathmetrics-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 fastpathmetrics"
32
33 - job-template:
34     name: 'fastpathmetrics-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     triggers:
62         - timed: 'H H * * *'
63
64     prebuilders:
65         - test-macro
66
67     builders:
68         - shell: |
69             pwd
70             find .
71             echo "Hello world from fastpathmetrics {somevar} daily"
72
73     postbuilders:
74         - test-macro
75
76 - job-template:
77     name: 'fastpathmetrics-verify'
78
79     project-type: freestyle
80
81     logrotate:
82         daysToKeep: 30
83         numToKeep: 10
84         artifactDaysToKeep: -1
85         artifactNumToKeep: -1
86
87     parameters:
88         - project-parameter:
89             project: '{project}'
90         - gerrit-parameter:
91             branch: 'master'
92     scm:
93         - gerrit-trigger-scm:
94             credentials-id: '{ssh-credentials}'
95             refspec: '$GERRIT_REFSPEC'
96             choosing-strategy: 'gerrit'
97
98     triggers:
99         - gerrit:
100             trigger-on:
101                 - patchset-created-event:
102                     exclude-drafts: 'false'
103                     exclude-trivial-rebase: 'false'
104                     exclude-no-code-change: 'false'
105                 - draft-published-event
106                 - comment-added-contains-event:
107                     comment-contains-value: 'recheck'
108                 - comment-added-contains-event:
109                     comment-contains-value: 'reverify'
110             projects:
111               - project-compare-type: 'ANT'
112                 project-pattern: 'fastpathmetrics'
113                 branches:
114                   - branch-compare-type: 'ANT'
115                     branch-pattern: '**/master'
116
117     builders:
118         - shell: |
119             pwd
120             find .
121             echo "verify logic goes here"
122
123 - job-template:
124     name: 'fastpathmetrics-merge'
125
126     # builder-merge job to run JJB update
127     #
128     # This job's purpose is to update all the JJB
129
130     project-type: freestyle
131
132     logrotate:
133         daysToKeep: 30
134         numToKeep: 40
135         artifactDaysToKeep: -1
136         artifactNumToKeep: 5
137
138     parameters:
139         - project-parameter:
140             project: '{project}'
141         - gerrit-parameter:
142             branch: 'master'
143
144     scm:
145         - gerrit-trigger-scm:
146             credentials-id: '{ssh-credentials}'
147             refspec: ''
148             choosing-strategy: 'default'
149
150     triggers:
151         - gerrit:
152             trigger-on:
153                 - change-merged-event
154                 - comment-added-contains-event:
155                     comment-contains-value: 'remerge'
156             projects:
157               - project-compare-type: 'ANT'
158                 project-pattern: 'fastpathmetrics'
159                 branches:
160                     - branch-compare-type: 'ANT'
161                       branch-pattern: '**/master'
162
163     builders:
164         - shell: |
165             pwd
166             find .
167             echo "merge logic goes here"
168
169
170
171
172
173