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