Fix for fuel release path
[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
66             ln -s /home/jenkins-ci/workspace/genesis-daily-master/fuel-build/release/ /var/www/genesis-fuel
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             projects:
106               - project-compare-type: 'ANT'
107                 project-pattern: 'genesis'
108                 branches:
109                   - branch-compare-type: 'ANT'
110                     branch-pattern: '**/master'
111                 file-paths:
112                     - compare-type: ANT
113                       pattern: jjb/**
114                     - compare-type: ANT
115                       pattern: jjb-templates/**
116
117     builders:
118         - shell: |
119             hostname
120             whoami
121             docker --version
122             cd fuel-build/docker
123             pwd
124             echo foo
125             make clean || true
126             make
127             echo "what tests can we run here?"
128   
129 - job-template:
130     name: 'genesis-merge'
131
132     # builder-merge job to run JJB update
133     #
134     # This job's purpose is to update all the JJB
135
136     project-type: freestyle
137     node: fuel
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
151     scm:
152         - gerrit-trigger-scm:
153             credentials-id: '{ssh-credentials}'
154             refspec: ''
155             choosing-strategy: 'default'
156
157     wrappers:
158         - ssh-agent-credentials:
159             user: '{ssh-credentials}'
160
161     triggers:
162         - gerrit:
163             trigger-on:
164                 - change-merged-event
165                 - comment-added-contains-event:
166                     comment-contains-value: 'remerge'
167             projects:
168               - project-compare-type: 'ANT'
169                 project-pattern: 'genesis'
170                 branches:
171                     - branch-compare-type: 'ANT'
172                       branch-pattern: '**/master'
173                 file-paths:
174                     - compare-type: ANT
175                       pattern: jjb/**
176
177     builders:
178         - shell: |
179             hostname
180             whoami
181             docker --version
182             cd fuel-build/docker
183             pwd
184             echo foo
185             make clean || true
186             make
187             cd ..
188             echo foo
189             make clean || true
190             make all