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