Merge "remove test_cases info in project description"
[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     logrotate:
22         daysToKeep: 30
23         numToKeep: 10
24         artifactDaysToKeep: -1
25         artifactNumToKeep: -1
26
27     builders:
28         - shell: |
29             echo "Hello world from fastpathmetrics"
30
31 - job-template:
32     name: 'fastpathmetrics-daily-{stream}'
33
34     # Job template for daily builders
35     #
36     # Required Variables:
37     #     stream:    branch with - in place of / (eg. stable)
38     #     branch:    branch (eg. stable)
39
40     varsetabove: '{somevar}'
41
42     parameters:
43         - project-parameter:
44             project: '{project}'
45
46     scm:
47         - git-scm:
48             credentials-id: '{ssh-credentials}'
49             refspec: ''
50             branch: '{branch}'
51
52     triggers:
53         - timed: 'H H * * *'
54
55     prebuilders:
56         - test-macro
57
58     builders:
59         - shell: |
60             pwd
61             find .
62             echo "Hello world from fastpathmetrics {somevar} daily"
63
64     postbuilders:
65         - test-macro
66
67 - job-template:
68     name: 'fastpathmetrics-verify'
69
70     logrotate:
71         daysToKeep: 30
72         numToKeep: 10
73         artifactDaysToKeep: -1
74         artifactNumToKeep: -1
75
76     parameters:
77         - project-parameter:
78             project: '{project}'
79         - gerrit-parameter:
80             branch: 'master'
81     scm:
82         - gerrit-trigger-scm:
83             credentials-id: '{ssh-credentials}'
84             refspec: '$GERRIT_REFSPEC'
85             choosing-strategy: 'gerrit'
86
87     triggers:
88         - gerrit:
89             trigger-on:
90                 - patchset-created-event:
91                     exclude-drafts: 'false'
92                     exclude-trivial-rebase: 'false'
93                     exclude-no-code-change: 'false'
94                 - draft-published-event
95                 - comment-added-contains-event:
96                     comment-contains-value: 'recheck'
97                 - comment-added-contains-event:
98                     comment-contains-value: 'reverify'
99             projects:
100               - project-compare-type: 'ANT'
101                 project-pattern: 'fastpathmetrics'
102                 branches:
103                   - branch-compare-type: 'ANT'
104                     branch-pattern: '**/master'
105
106     builders:
107         - shell: |
108             pwd
109             find .
110             echo "verify logic goes here"
111
112 - job-template:
113     name: 'fastpathmetrics-merge'
114
115     # builder-merge job to run JJB update
116     #
117     # This job's purpose is to update all the JJB
118
119     parameters:
120         - project-parameter:
121             project: '{project}'
122         - gerrit-parameter:
123             branch: 'master'
124
125     scm:
126         - gerrit-trigger-scm:
127             credentials-id: '{ssh-credentials}'
128             refspec: ''
129             choosing-strategy: 'default'
130
131     triggers:
132         - gerrit:
133             trigger-on:
134                 - change-merged-event
135                 - comment-added-contains-event:
136                     comment-contains-value: 'remerge'
137             projects:
138               - project-compare-type: 'ANT'
139                 project-pattern: 'fastpathmetrics'
140                 branches:
141                     - branch-compare-type: 'ANT'
142                       branch-pattern: '**/master'
143
144     builders:
145         - shell: |
146             pwd
147             find .
148             echo "merge logic goes here"
149