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