Merge "Add the pod info to the job name"
[releng.git] / jjb / opera / opera-daily-jobs.yml
1 ---
2 - project:
3     name: 'opera-daily-jobs'
4
5     project: 'opera'
6
7     #####################################
8     # branch definitions
9     #####################################
10     master: &master
11       stream: master
12       branch: '{stream}'
13       gs-pathname: ''
14       disabled: false
15
16     #####################################
17     # pod definitions
18     #####################################
19     pod:
20       - virtual:
21           slave-label: 'huawei-virtual7'
22           os-version: 'xenial'
23           <<: *master
24
25     #####################################
26     # jobs
27     #####################################
28     jobs:
29       - 'opera-{pod}-daily-{stream}'
30
31 #####################################
32 # job templates
33 #####################################
34 - job-template:
35     name: 'opera-{pod}-daily-{stream}'
36
37     project-type: multijob
38
39     disabled: '{obj:disabled}'
40
41     concurrent: false
42
43     properties:
44       - logrotate-default
45       - throttle:
46           enabled: true
47           max-total: 1
48           max-per-node: 1
49           option: 'project'
50
51     scm:
52       - git-scm
53
54     wrappers:
55       - ssh-agent-wrapper
56       - timeout:
57           timeout: 240
58           fail: true
59
60     triggers:
61       - timed: '@midnight'
62
63     parameters:
64       - project-parameter:
65           project: '{project}'
66           branch: '{branch}'
67       - string:
68           name: DEPLOY_SCENARIO
69           default: os-nosdn-openo-ha
70       - '{slave-label}-defaults'
71
72     builders:
73       - description-setter:
74           description: "Built on $NODE_NAME"
75       - multijob:
76           name: deploy
77           condition: SUCCESSFUL
78           projects:
79             - name: 'compass-deploy-{pod}-daily-{stream}'
80               current-parameters: false
81               predefined-parameters: |
82                 DEPLOY_SCENARIO=os-nosdn-openo-ha
83                 COMPASS_OS_VERSION=xenial
84               node-parameters: true
85               kill-phase-on: FAILURE
86               abort-all-job: true
87       - multijob:
88           name: functest
89           condition: SUCCESSFUL
90           projects:
91             - name: 'functest-compass-{pod}-suite-{stream}'
92               current-parameters: false
93               predefined-parameters: |
94                 DEPLOY_SCENARIO=os-nosdn-openo-ha
95                 FUNCTEST_MODE=testcase
96                 FUNCTEST_SUITE_NAME=opera_vims
97               node-parameters: true
98               kill-phase-on: NEVER
99               abort-all-job: true