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