Get daisy installer IP
[releng.git] / jjb / opera / opera-verify-jobs.yml
1 ---
2 - project:
3     name: 'opera-verify-jobs'
4
5     project: 'opera'
6
7     #####################################
8     # branch definitions
9     #####################################
10     stream:
11       - master:
12           branch: '{stream}'
13           gs-pathname: ''
14           disabled: false
15
16     #####################################
17     # patch verification phases
18     #####################################
19     phase:
20       - 'basic'
21       - 'deploy'
22
23     #####################################
24     # jobs
25     #####################################
26     jobs:
27       - 'opera-verify-{stream}'
28       - 'opera-verify-{phase}-{stream}'
29 #####################################
30 # job templates
31 #####################################
32 - job-template:
33     name: 'opera-verify-{stream}'
34
35     project-type: multijob
36
37     disabled: '{obj:disabled}'
38
39     concurrent: true
40
41     properties:
42       - logrotate-default
43       - throttle:
44           enabled: true
45           max-total: 1
46           max-per-node: 1
47           option: 'project'
48
49     scm:
50       - git-scm-gerrit
51
52     wrappers:
53       - ssh-agent-wrapper
54       - timeout:
55           timeout: 120
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               file-paths:
78                 - compare-type: ANT
79                   pattern: '**/*'
80               disable-strict-forbidden-file-verification: 'true'
81               forbidden-file-paths:
82                 - compare-type: ANT
83                   pattern: 'docs/**'
84           readable-message: true
85
86     parameters:
87       - project-parameter:
88           project: '{project}'
89           branch: '{branch}'
90       - 'huawei-pod7-defaults'
91
92     builders:
93       - description-setter:
94           description: "Built on $NODE_NAME"
95       - multijob:
96           name: basic
97           condition: SUCCESSFUL
98           projects:
99             - name: 'opera-verify-basic-{stream}'
100               current-parameters: true
101               node-parameters: true
102               kill-phase-on: FAILURE
103               abort-all-job: true
104       - multijob:
105           name: deploy
106           condition: SUCCESSFUL
107           projects:
108             - name: 'opera-verify-deploy-{stream}'
109               current-parameters: true
110               node-parameters: true
111               kill-phase-on: FAILURE
112               abort-all-job: true
113
114 - job-template:
115     name: 'opera-verify-{phase}-{stream}'
116
117     disabled: '{obj:disabled}'
118
119     concurrent: true
120
121     properties:
122       - logrotate-default
123       - throttle:
124           enabled: true
125           max-per-node: 1
126           option: 'project'
127
128     scm:
129       - git-scm-gerrit
130
131     wrappers:
132       - ssh-agent-wrapper
133       - timeout:
134           timeout: 120
135           fail: true
136
137     builders:
138       - description-setter:
139           description: "Built on $NODE_NAME"
140       - '{project}-verify-{phase}-macro'
141
142 #####################################
143 # builder macros
144 #####################################
145 - builder:
146     name: 'opera-verify-basic-macro'
147     builders:
148       - shell: |
149           #!/bin/bash
150           echo "Hello world!"
151
152 - builder:
153     name: 'opera-verify-deploy-macro'
154     builders:
155       - shell: |
156           #!/bin/bash
157           echo "Hello world!"