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