fix daily builder failure for parser prediction promise and attach to node master
[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     project-type: freestyle
22
23     logrotate:
24         daysToKeep: 30
25         numToKeep: 10
26         artifactDaysToKeep: -1
27         artifactNumToKeep: -1
28
29     builders:
30         - shell: |
31             echo "Hello world from octopus"
32
33 - job-template:
34     name: 'octopus-daily-{stream}'
35
36     node: master
37
38     # Job template for daily builders
39     #
40     # Required Variables:
41     #     stream:    branch with - in place of / (eg. stable)
42     #     branch:    branch (eg. stable)
43
44     project-type: freestyle
45     varsetabove: '{somevar}'
46
47     logrotate:
48         daysToKeep: '{build-days-to-keep}'
49         numToKeep: '{build-num-to-keep}'
50         artifactDaysToKeep: '{build-artifact-days-to-keep}'
51         artifactNumToKeep: '{build-artifact-num-to-keep}'
52
53     parameters:
54         - project-parameter:
55             project: '{project}'
56
57     scm:
58         - git-scm:
59             credentials-id: '{ssh-credentials}'
60             refspec: ''
61             branch: '{branch}'
62
63     wrappers:
64         - ssh-agent-credentials:
65             user: '{ssh-credentials}'
66
67     triggers:
68         - timed: 'H H * * *'
69
70     prebuilders:
71         - test-macro
72
73     builders:
74         - shell:
75             !include-raw docu-build.sh
76
77     postbuilders:
78         - test-macro
79
80 - job-template:
81     name: 'octopus-verify'
82
83     node: master
84
85     project-type: freestyle
86
87     logrotate:
88         daysToKeep: 30
89         numToKeep: 10
90         artifactDaysToKeep: -1
91         artifactNumToKeep: -1
92
93     parameters:
94         - project-parameter:
95             project: '{project}'
96         - gerrit-parameter:
97             branch: 'master'
98     scm:
99         - gerrit-trigger-scm:
100             credentials-id: '{ssh-credentials}'
101             refspec: '$GERRIT_REFSPEC'
102             choosing-strategy: 'gerrit'
103
104     wrappers:
105         - ssh-agent-credentials:
106             user: '{ssh-credentials}'
107
108     triggers:
109         - gerrit:
110             trigger-on:
111                 - patchset-created-event:
112                     exclude-drafts: 'false'
113                     exclude-trivial-rebase: 'false'
114                     exclude-no-code-change: 'false'
115                 - draft-published-event
116                 - comment-added-contains-event:
117                     comment-contains-value: 'recheck'
118                 - comment-added-contains-event:
119                     comment-contains-value: 'reverify'
120             projects:
121               - project-compare-type: 'ANT'
122                 project-pattern: 'octopus'
123                 branches:
124                   - branch-compare-type: 'ANT'
125                     branch-pattern: '**/master'
126
127     builders:
128         - shell:
129             !include-raw docu-verify.sh
130
131 - job-template:
132     name: 'octopus-merge'
133
134     node: master
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 docu-build.sh
180