Merge "Fix typo in mac address"
[releng.git] / jjb / daisy4nfv / daisy4nfv-verify-jobs.yml
1 - project:
2     name: 'daisy4nfv-verify-jobs'
3
4     project: 'daisy'
5 #####################################
6 # branch definitions
7 #####################################
8     stream:
9         - master:
10             branch: '{stream}'
11             gs-pathname: ''
12             disabled: false
13 #####################################
14 # patch verification phases
15 #####################################
16     phase:
17         - 'basic':
18             slave-label: 'opnfv-build-centos'
19         - 'build':
20             slave-label: 'opnfv-build-centos'
21         - 'deploy-virtual':
22             slave-label: 'opnfv-build'
23         - 'smoke-test':
24             slave-label: 'opnfv-build'
25 #####################################
26 # jobs
27 #####################################
28     jobs:
29         - 'daisy4nfv-verify-{stream}'
30         - 'daisy4nfv-verify-{phase}-{stream}'
31 #####################################
32 # job templates
33 #####################################
34 - job-template:
35     name: 'daisy4nfv-verify-{stream}'
36
37     project-type: multijob
38
39     disabled: false
40
41     concurrent: true
42
43     properties:
44         - throttle:
45             enabled: true
46             max-total: 4
47             option: 'project'
48
49     scm:
50         - git-scm-gerrit
51
52     wrappers:
53         - ssh-agent-wrapper
54         - timeout:
55             timeout: 360
56             fail: true
57
58     triggers:
59         - gerrit:
60             server-name: 'gerrit.opnfv.org'
61             trigger-on:
62                 - patchset-created-event:
63                     exclude-drafts: 'false'
64                     exclude-trivial-rebase: 'false'
65                     exclude-no-code-change: 'false'
66                 - draft-published-event
67                 - comment-added-contains-event:
68                     comment-contains-value: 'recheck'
69                 - comment-added-contains-event:
70                     comment-contains-value: 'reverify'
71             projects:
72               - project-compare-type: 'ANT'
73                 project-pattern: '{project}'
74                 branches:
75                   - branch-compare-type: 'ANT'
76                     branch-pattern: '**/{branch}'
77                 forbidden-file-paths:
78                   - compare-type: ANT
79                     pattern: 'docs/**|.gitignore'
80             readable-message: true
81
82     parameters:
83         - project-parameter:
84             project: '{project}'
85         - gerrit-parameter:
86             branch: '{branch}'
87         - 'opnfv-build-defaults'
88         - 'daisy4nfv-verify-defaults':
89             gs-pathname: '{gs-pathname}'
90
91     builders:
92         - description-setter:
93             description: "Built on $NODE_NAME"
94         - multijob:
95             name: basic
96             condition: SUCCESSFUL
97             projects:
98                 - name: 'daisy4nfv-verify-basic-{stream}'
99                   current-parameters: false
100                   predefined-parameters: |
101                     GERRIT_BRANCH=$GERRIT_BRANCH
102                     GERRIT_REFSPEC=$GERRIT_REFSPEC
103                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
104                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
105                   node-parameters: false
106                   kill-phase-on: FAILURE
107                   abort-all-job: true
108         - multijob:
109             name: build
110             condition: SUCCESSFUL
111             projects:
112                 - name: 'daisy4nfv-verify-build-{stream}'
113                   current-parameters: false
114                   predefined-parameters: |
115                     GERRIT_BRANCH=$GERRIT_BRANCH
116                     GERRIT_REFSPEC=$GERRIT_REFSPEC
117                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
118                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
119                   node-parameters: false
120                   kill-phase-on: FAILURE
121                   abort-all-job: true
122         - multijob:
123             name: deploy-virtual
124             condition: SUCCESSFUL
125             projects:
126                 - name: 'daisy4nfv-verify-deploy-virtual-{stream}'
127                   current-parameters: false
128                   predefined-parameters: |
129                     GERRIT_BRANCH=$GERRIT_BRANCH
130                     GERRIT_REFSPEC=$GERRIT_REFSPEC
131                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
132                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
133                   node-parameters: false
134                   kill-phase-on: FAILURE
135                   abort-all-job: true
136         - multijob:
137             name: smoke-test
138             condition: SUCCESSFUL
139             projects:
140                 - name: 'daisy4nfv-verify-smoke-test-{stream}'
141                   current-parameters: false
142                   predefined-parameters: |
143                     GERRIT_BRANCH=$GERRIT_BRANCH
144                     GERRIT_REFSPEC=$GERRIT_REFSPEC
145                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
146                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
147                   node-parameters: false
148                   kill-phase-on: FAILURE
149                   abort-all-job: true
150
151 - job-template:
152     name: 'daisy4nfv-verify-{phase}-{stream}'
153
154     disabled: '{obj:disabled}'
155
156     concurrent: true
157
158     properties:
159         - throttle:
160             enabled: true
161             max-total: 6
162             option: 'project'
163         - build-blocker:
164             use-build-blocker: true
165             blocking-jobs:
166                 - 'daisy4nfv-verify-deploy-.*'
167                 - 'daisy4nfv-verify-test-.*'
168             block-level: 'NODE'
169
170     scm:
171         - git-scm-gerrit
172
173     wrappers:
174         - ssh-agent-wrapper
175         - timeout:
176             timeout: 360
177             fail: true
178
179     parameters:
180         - project-parameter:
181             project: '{project}'
182         - gerrit-parameter:
183             branch: '{branch}'
184         - '{slave-label}-defaults'
185         - 'daisy4nfv-verify-defaults':
186             gs-pathname: '{gs-pathname}'
187
188     builders:
189         - description-setter:
190             description: "Built on $NODE_NAME"
191         - '{project}-verify-{phase}-macro'
192 #####################################
193 # builder macros
194 #####################################
195 - builder:
196     name: 'daisy-verify-basic-macro'
197     builders:
198         - shell:
199             !include-raw: ./daisy4nfv-basic.sh
200
201 - builder:
202     name: 'daisy-verify-build-macro'
203     builders:
204         - shell:
205             !include-raw: ./daisy4nfv-build.sh
206
207 - builder:
208     name: 'daisy-verify-deploy-virtual-macro'
209     builders:
210         - shell:
211             !include-raw: ./daisy4nfv-virtual-deploy.sh
212
213 - builder:
214     name: 'daisy-verify-smoke-test-macro'
215     builders:
216         - shell: |
217             #!/bin/bash
218
219             echo "Not activated!"
220 #####################################
221 # parameter macros
222 #####################################
223 - parameter:
224     name: 'daisy4nfv-verify-defaults'
225     parameters:
226         - string:
227             name: BUILD_DIRECTORY
228             default: $WORKSPACE/build_output
229             description: "Directory where the build artifact will be located upon the completion of the build."
230         - string:
231             name: CACHE_DIRECTORY
232             default: $HOME/opnfv/cache/$INSTALLER_TYPE
233             description: "Directory where the cache to be used during the build is located."
234         - string:
235             name: GS_URL
236             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
237             description: "URL to Google Storage."