a990072fa973121045a8cb2aaff13f94acdcfe19
[releng.git] / jjb / opera / opera-daily-jobs.yml
1 - project:
2     name: 'opera-daily-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-daily-{stream}'
27         - 'opera-daily-{phase}-{stream}'
28 #####################################
29 # job templates
30 #####################################
31 - job-template:
32     name: 'opera-daily-{stream}'
33
34     project-type: multijob
35
36     disabled: '{obj:disabled}'
37
38     concurrent: false
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
50
51     wrappers:
52         - ssh-agent-wrapper
53
54         - timeout:
55             timeout: 120
56             fail: true
57
58     triggers:
59          - timed: '@midnight'
60
61     parameters:
62         - project-parameter:
63             project: '{project}'
64             branch: '{branch}'
65         - 'huawei-virtual7-defaults'
66         - 'compass-defaults'
67         - 'opera-compass-parameter'
68
69     builders:
70         - description-setter:
71             description: "Built on $NODE_NAME"
72         - multijob:
73             name: basic
74             condition: SUCCESSFUL
75             projects:
76                 - name: 'opera-daily-basic-{stream}'
77                   current-parameters: true
78                   node-parameters: true
79                   kill-phase-on: FAILURE
80                   abort-all-job: true
81         - multijob:
82             name: deploy
83             condition: SUCCESSFUL
84             projects:
85                 - name: 'compass-deploy-virtual-daily-{stream}'
86                   current-parameters: true
87                   node-parameters: true
88                   kill-phase-on: FAILURE
89                   abort-all-job: true
90 #        - multijob:
91 #            name: functest
92 #            condition: SUCCESSFUL
93 #            projects:
94 #                - name: 'functest-compass-baremetal-suite-{stream}'
95 #                  current-parameters: true
96 #                  predefined-parameters:
97 #                    FUNCTEST_SUITE_NAME=opera
98 #                  node-parameters: true
99 #                  kill-phase-on: NEVER
100 #                  abort-all-job: true
101
102 - job-template:
103     name: 'opera-daily-{phase}-{stream}'
104
105     disabled: '{obj:disabled}'
106
107     concurrent: true
108
109     properties:
110         - logrotate-default
111         - throttle:
112             enabled: true
113             max-per-node: 1
114             option: 'project'
115
116     scm:
117         - git-scm
118
119     wrappers:
120         - ssh-agent-wrapper
121         - timeout:
122             timeout: 120
123             fail: true
124
125     builders:
126         - description-setter:
127             description: "Built on $NODE_NAME"
128         - '{project}-daily-{phase}-macro'
129
130 #####################################
131 # builder macros
132 #####################################
133 - builder:
134     name: 'opera-daily-basic-macro'
135     builders:
136         - shell: |
137             #!/bin/bash
138             echo "Hello world!"
139
140 - builder:
141     name: 'opera-daily-deploy-macro'
142     builders:
143         - shell: |
144             #!/bin/bash
145             echo "Hello world!"
146
147 ########################
148 # parameter macros
149 ########################
150 - parameter:
151     name: opera-compass-parameter
152     parameters:
153         - string:
154             name: BUILD_DIRECTORY
155             default: $WORKSPACE/build_output
156             description: "Directory where the build artifact will be located upon the completion of the build."
157         - string:
158             name: GS_URL
159             default: '$GS_BASE{gs-pathname}'
160             description: "URL to Google Storage."
161         - choice:
162             name: COMPASS_OPENSTACK_VERSION
163             choices:
164                 - 'newton'
165         - string:
166             name: DEPLOY_SCENARIO
167             default: 'os-nosdn-openo-noha'
168         - string:
169             name: COMPASS_OS_VERSION
170             default: 'xenial'