iec: exclude seba_on_arm from virtual PODs
[ci-management.git] / jjb / akraino-templates / akraino-iec-templates.yaml
1 ---
2 - job-template:
3     id: akraino-iec-install
4     name: 'iec-{iecType}-{installer}-{deploy_type}-{os}-daily-{stream}'
5     disabled: '{obj:disabled}'
6     concurrent: false
7     node: '{slave-label}'
8     properties:
9       - throttle:
10           enabled: true
11           max-total: 4
12           max-per-node: 1
13           option: 'project'
14       - build-blocker:
15           use-build-blocker: true
16           blocking-jobs:
17             - '.*-fuel-{deploy_type}-.*'
18             - '.*-compass-{deploy_type}-.*'
19           block-level: 'NODE'
20
21     wrappers:
22       - build-name:
23           name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO $IEC_TYPE'
24
25     triggers:
26       - 'iec-{iecType}-{installer}-{deploy_type}-{os}-daily-{stream}-trigger'
27
28     parameters:
29       - lf-infra-parameters:
30           project: '{project}'
31           stream: '{stream}'
32           branch: '{branch}'
33       - '{project}-defaults'
34       - '{installer}-{os}-defaults'
35       - string:
36           name: DEPLOY_SCENARIO
37           default: '{scenario}'
38       - string:
39           name: IEC_TYPE
40           default: '{iecType}'
41
42     builders:
43       - trigger-builds:
44           - project: 'iec-{iecType}-deploy-{installer}-{deploy_type}-{os}-daily-{stream}'
45             current-parameters: true
46             predefined-parameters:
47               DEPLOY_SCENARIO={scenario}
48             same-node: true
49             block: true
50           - project: 'validation-enea-daily-{stream}'
51             same-node: true
52             current-parameters: true
53             predefined-parameters: |
54               CLUSTER_MASTER_IP=$K8S_MASTER_IP
55               CLUSTER_SSH_USER=$K8S_SSH_USER
56               CLUSTER_SSH_PASSWORD=$K8S_SSH_PASSWORD
57               CLUSTER_SSH_KEY=$K8S_SSH_KEY
58               BLUEPRINT={project-name}
59               VERSION=master
60               OPTIONAL=false
61             block: true
62           - project:
63               !j2: |
64                 {%- if deploy_type not in ['virtual'] -%}
65                 {%- for uc in usecase -%}
66                 iec-{{ iecType }}-install-{{ uc }}-{{ installer }}-{{ deploy_type }}-{{ os }}-daily-{{ stream }}
67                 {%- if not loop.last -%},{%- endif -%}
68                 {%- endfor %}
69                 {%- endif -%}
70             current-parameters: true
71             same-node: true
72             block: true
73             block-thresholds:
74               build-step-failure-threshold: 'never'
75               failure-threshold: 'never'
76               unstable-threshold: 'FAILURE'
77           - project: 'iec-{iecType}-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
78             current-parameters: false
79             predefined-parameters: |
80               DEPLOY_SCENARIO={scenario}
81               IEC_TYPE={iecType}
82             same-node: true
83             block: true
84
85 - job-template:
86     id: akraino-iec-deploy
87     name: 'iec-{iecType}-deploy-{installer}-{deploy_type}-{os}-daily-{stream}'
88     concurrent: true
89     node: '{slave-label}'
90     properties: &properties
91       - throttle:
92           enabled: true
93           max-total: 4
94           max-per-node: 1
95           option: 'project'
96       - build-blocker:
97           use-build-blocker: true
98           blocking-jobs:
99             - '.*-{iecType}-deploy-{installer}-{deploy_type}-.*'
100             - '.*-{iecType}-destroy-{installer}-{deploy_type}-.*'
101             - '.*-{iecType}-install-.*-{installer}-{deploy_type}-.*'
102           block-level: 'NODE'
103
104     parameters:
105       - lf-infra-parameters:
106           project: '{project}'
107           stream: '{stream}'
108           branch: '{branch}'
109       - '{project}-defaults'
110       - '{installer}-{os}-defaults'
111       - string:
112           name: DEPLOY_SCENARIO
113           default: '{scenario}'
114       - string:
115           name: IEC_TYPE
116           default: '{iecType}'
117       - string:
118           name: EXTRA_ARGS
119           default: '-o {os}'
120
121     wrappers: &wrappers
122       - build-name:
123           name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO $IEC_TYPE'
124
125     scm: &scm
126       - git:
127           credentials-id: '{jenkins-ssh-credential}'
128           url: '{git-url}/{project}.git'
129           refspec: '$GERRIT_REFSPEC'
130           branches: '$GERRIT_BRANCH'
131           skip-tag: true
132           wipe-workspace: true
133           submodule:
134             disable: true
135             recursive: false
136             timeout: '{submodule-timeout}'
137           choosing-strategy: default
138
139     builders:
140       - description-setter:
141           description: "POD: $NODE_NAME"
142       - conditional-step:
143           condition-kind: regex-match
144           regex: 'compass'
145           label: '{installer}'
146           steps:
147             - shell:
148                 !include-raw-escape: ../iec/iec-compass-build.sh
149             - shell:
150                 !include-raw-escape: ../iec/iec-compass-deploy.sh
151             - shell:
152                 !include-raw-escape: ../iec/iec-fdn-install.sh
153       - conditional-step:
154           condition-kind: regex-match
155           regex: 'fuel'
156           label: '{installer}'
157           steps:
158             - shell:
159                 !include-raw-escape: ../iec/iec-fuel-deploy.sh
160
161     publishers: &publishers
162       - email:
163           recipients: armband@enea.com
164       - lf-infra-publish
165
166 - job-template:
167     id: akraino-iec-destroy
168     name: 'iec-{iecType}-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
169     concurrent: true
170     node: '{slave-label}'
171     properties: *properties
172     parameters:
173       - lf-infra-parameters:
174           project: '{project}'
175           stream: '{stream}'
176           branch: '{branch}'
177       - '{project}-defaults'
178       - '{installer}-{os}-defaults'
179       - string:
180           name: DEPLOY_SCENARIO
181           default: '{scenario}'
182       - string:
183           name: IEC_TYPE
184           default: '{iecType}'
185       - string:
186           name: EXTRA_ARGS
187           default: '-EEE -o {os}'
188
189     wrappers: *wrappers
190     scm: *scm
191
192     builders:
193       - description-setter:
194           description: "POD: $NODE_NAME"
195       - shell:
196           !include-raw-escape: ../iec/iec-{installer}-destroy.sh
197
198     publishers: *publishers
199
200 - job-template:
201     id: akraino-iec-install-usecase
202     name: 'iec-{iecType}-install-{usecase}-{installer}-{deploy_type}-{os}-daily-{stream}'
203     concurrent: true
204     node: '{slave-label}'
205     properties: *properties
206
207     parameters:
208       - lf-infra-parameters:
209           project: '{project}'
210           stream: '{stream}'
211           branch: '{branch}'
212       - '{project}-defaults'
213       - '{installer}-{os}-defaults'
214
215     wrappers:
216       - build-name:
217           name: '$BUILD_NUMBER - Usecase: ${usecase} DeployType: ${installer}-${deploy_type}'
218
219     scm: *scm
220
221     builders:
222       - shell:
223           !include-raw-escape: ../iec/iec-{usecase}.sh
224
225     publishers: *publishers
226