[QTIP] Add a new variable "SUT" in project
[releng.git] / jjb / qtip / qtip-validate-jobs.yml
1 ---
2 #######################
3 # validate after MERGE
4 #######################
5 - project:
6     name: qtip
7     project: qtip
8
9     # -------------------------------
10     # BRANCH ANCHORS
11     # -------------------------------
12     master: &master
13       stream: master
14       branch: '{stream}'
15       gs-pathname: ''
16       docker-tag: latest
17     euphrates: &euphrates
18       stream: euphrates
19       branch: 'stable/{stream}'
20       gs-pathname: '{stream}'
21       docker-tag: 'stable'
22
23     # -------------------------------
24     # JOB VARIABLES
25     # -------------------------------
26     qpi:
27       - compute:
28           installer: apex
29           pod: zte-virtual5
30           <<: *master
31       - storage:
32           installer: apex
33           pod: zte-virtual5
34           <<: *master
35       - compute:
36           installer: fuel
37           pod: zte-virtual6
38           <<: *master
39
40     # -------------------------------
41     # SYSTEM UNDER TEST
42     # -------------------------------
43     sut:
44       - 'host'
45       - 'vnf'
46
47     # -------------------------------
48     # JOB LIST
49     # -------------------------------
50     jobs:
51       - 'qtip-{qpi}-{sut}-{installer}-{pod}-{stream}'
52
53 ################################
54 # job templates
55 ################################
56 - job-template:
57     name: 'qtip-{qpi}-{sut}-{installer}-{pod}-{stream}'
58     disabled: false
59
60     parameters:
61       - project-parameter:
62           project: '{project}'
63           branch: '{branch}'
64       - '{installer}-defaults'
65       - '{pod}-defaults'
66       - string:
67           name: DEPLOY_SCENARIO
68           default: generic
69       - string:
70           name: DOCKER_TAG
71           default: '{docker-tag}'
72           description: 'Tag to pull docker image'
73       - string:
74           name: CI_DEBUG
75           default: 'false'
76           description: "Show debug output information"
77       - string:
78           name: TEST_SUITE
79           default: '{qpi}'
80       - string:
81           name: TESTAPI_URL
82           default: 'http://testresults.opnfv.org/test/api/v1'
83       - string:
84           name: OPNFV_RELEASE
85           default: '{stream}'
86       - string:
87           name: SUT
88           default: '{sut}'
89     scm:
90       - git-scm
91
92     wrappers:
93       - timeout:
94           timeout: 30
95           abort: true
96       - timestamps
97
98     triggers:
99       - 'qtip-daily'
100
101     builders:
102       - description-setter:
103           description: "POD: $NODE_NAME"
104       - shell: |
105           #!/bin/bash
106           source tests/ci/periodic.sh
107
108     publishers:
109       - qtip-common-publishers
110       - email-jenkins-admins-on-failure
111
112 ################
113 # MARCOS
114 ################
115
116 # --------
117 # builder
118 # --------
119
120 # ----------
121 # parameter
122 # ----------
123
124 # ----------
125 # publisher
126 # ----------
127
128 - publisher:
129     name: qtip-common-publishers
130     publishers:
131       - email:
132           recipients: wu.zhihui1@zte.com.cn, zhang.yujunz@zte.com.cn
133
134 # --------
135 # trigger
136 # --------
137
138 - trigger:
139     name: 'qtip-daily'
140     triggers:
141       - timed: '0 15 * * *'