Merge "[fuel] Align master jobs schedule"
[releng.git] / jjb / opera / opera-verify-jobs.yml
1 - project:
2     name: 'opera-verify-jobs'
3
4     project: 'opera'
5
6 #####################################
7 # branch definitions
8 #####################################
9     stream:
10         - master:
11             branch: '{stream}'
12             gs-pathname: ''
13             disabled: false
14
15 #####################################
16 # patch verification phases
17 #####################################
18     phase:
19         - 'basic'
20         - 'deploy'
21
22 #####################################
23 # jobs
24 #####################################
25     jobs:
26         - 'opera-verify-{stream}'
27         - 'opera-verify-{phase}-{stream}'
28 #####################################
29 # job templates
30 #####################################
31 - job-template:
32     name: 'opera-verify-{stream}'
33
34     project-type: multijob
35
36     disabled: '{obj:disabled}'
37
38     concurrent: true
39
40     properties:
41         - logrotate-default
42         - throttle:
43             enabled: true
44             max-total: 1
45             max-per-node: 1
46             option: 'project'
47
48     scm:
49         - git-scm-gerrit
50
51     wrappers:
52         - ssh-agent-wrapper
53         - timeout:
54             timeout: 120
55             fail: true
56
57     triggers:
58         - gerrit:
59             server-name: 'gerrit.opnfv.org'
60             trigger-on:
61                 - patchset-created-event:
62                     exclude-drafts: 'false'
63                     exclude-trivial-rebase: 'false'
64                     exclude-no-code-change: 'false'
65                 - draft-published-event
66                 - comment-added-contains-event:
67                     comment-contains-value: 'recheck'
68                 - comment-added-contains-event:
69                     comment-contains-value: 'reverify'
70             projects:
71               - project-compare-type: 'ANT'
72                 project-pattern: '{project}'
73                 branches:
74                   - branch-compare-type: 'ANT'
75                     branch-pattern: '**/{branch}'
76                 file-paths:
77                   - compare-type: ANT
78                     pattern: '**/*'
79                 forbidden-file-paths:
80                   - compare-type: ANT
81                     pattern: 'docs/**'
82             readable-message: true
83
84     parameters:
85         - project-parameter:
86             project: '{project}'
87             branch: '{branch}'
88         - 'huawei-pod7-defaults'
89
90     builders:
91         - description-setter:
92             description: "Built on $NODE_NAME"
93         - multijob:
94             name: basic
95             condition: SUCCESSFUL
96             projects:
97                 - name: 'opera-verify-basic-{stream}'
98                   current-parameters: true
99                   node-parameters: true
100                   kill-phase-on: FAILURE
101                   abort-all-job: true
102         - multijob:
103             name: deploy
104             condition: SUCCESSFUL
105             projects:
106                 - name: 'opera-verify-deploy-{stream}'
107                   current-parameters: true
108                   node-parameters: true
109                   kill-phase-on: FAILURE
110                   abort-all-job: true
111
112 - job-template:
113     name: 'opera-verify-{phase}-{stream}'
114
115     disabled: '{obj:disabled}'
116
117     concurrent: true
118
119     properties:
120         - logrotate-default
121         - throttle:
122             enabled: true
123             max-per-node: 1
124             option: 'project'
125
126     scm:
127         - git-scm-gerrit
128
129     wrappers:
130         - ssh-agent-wrapper
131         - timeout:
132             timeout: 120
133             fail: true
134
135     builders:
136         - description-setter:
137             description: "Built on $NODE_NAME"
138         - '{project}-verify-{phase}-macro'
139
140 #####################################
141 # builder macros
142 #####################################
143 - builder:
144     name: 'opera-verify-basic-macro'
145     builders:
146         - shell: |
147             #!/bin/bash
148             echo "Hello world!"
149
150 - builder:
151     name: 'opera-verify-deploy-macro'
152     builders:
153         - shell: |
154             #!/bin/bash
155             echo "Hello world!"
156