c72292c8fd09a5c9d60aae4ced700d3356d803a0
[releng.git] / jjb / octopus / octopus.yml
1 - project:
2     name: octopus
3     jobs:
4         - 'octopus-test'
5         - 'octopus-daily-{stream}'
6         - 'octopus-merge'
7         - 'octopus-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: 'octopus'
16     somevar: 'foo'
17
18 - job-template:
19     name: octopus-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 octopus"
34
35 - job-template:
36     name: 'octopus-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
59     scm:
60         - git-scm:
61             credentials-id: '{ssh-credentials}'
62             refspec: ''
63             branch: '{branch}'
64
65     wrappers:
66         - ssh-agent-credentials:
67             user: '{ssh-credentials}'
68
69     triggers:
70         - timed: 'H H * * *'
71
72     prebuilders:
73         - test-macro
74
75     builders:
76         - shell:
77             !include-raw build-upload-docu.sh
78
79     postbuilders:
80         - test-macro
81
82 - job-template:
83     name: 'octopus-verify'
84
85     node: master
86
87     project-type: freestyle
88
89     logrotate:
90         daysToKeep: 30
91         numToKeep: 10
92         artifactDaysToKeep: -1
93         artifactNumToKeep: -1
94
95     parameters:
96         - project-parameter:
97             project: '{project}'
98         - gerrit-parameter:
99             branch: 'master'
100     scm:
101         - gerrit-trigger-scm:
102             credentials-id: '{ssh-credentials}'
103             refspec: '$GERRIT_REFSPEC'
104             choosing-strategy: 'gerrit'
105
106     wrappers:
107         - ssh-agent-credentials:
108             user: '{ssh-credentials}'
109
110     triggers:
111         - gerrit:
112             trigger-on:
113                 - patchset-created-event:
114                     exclude-drafts: 'false'
115                     exclude-trivial-rebase: 'false'
116                     exclude-no-code-change: 'false'
117                 - draft-published-event
118                 - comment-added-contains-event:
119                     comment-contains-value: 'recheck'
120                 - comment-added-contains-event:
121                     comment-contains-value: 'reverify'
122             projects:
123               - project-compare-type: 'ANT'
124                 project-pattern: 'octopus'
125                 branches:
126                   - branch-compare-type: 'ANT'
127                     branch-pattern: '**/master'
128
129     builders:
130         - shell:
131             !include-raw build-docu-verify.sh
132
133 - job-template:
134     name: 'octopus-merge'
135
136     # builder-merge job to run JJB update
137     #
138     # This job's purpose is to update all the JJB
139
140     project-type: freestyle
141
142     logrotate:
143         daysToKeep: 30
144         numToKeep: 40
145         artifactDaysToKeep: -1
146         artifactNumToKeep: 5
147
148     parameters:
149         - project-parameter:
150             project: '{project}'
151         - gerrit-parameter:
152             branch: 'master'
153
154     scm:
155         - gerrit-trigger-scm:
156             credentials-id: '{ssh-credentials}'
157             refspec: ''
158             choosing-strategy: 'default'
159
160     wrappers:
161         - ssh-agent-credentials:
162             user: '{ssh-credentials}'
163
164     triggers:
165         - gerrit:
166             trigger-on:
167                 - change-merged-event
168                 - comment-added-contains-event:
169                     comment-contains-value: 'remerge'
170             projects:
171               - project-compare-type: 'ANT'
172                 project-pattern: 'octopus'
173                 branches:
174                     - branch-compare-type: 'ANT'
175                       branch-pattern: '**/master'
176
177     builders:
178         - shell:
179             !include-raw build-upload-docu.sh
180