3 id: akraino-iec-install
4 name: 'iec-{iecType}-{installer}-{deploy_type}-{os}-daily-{stream}'
5 disabled: '{obj:disabled}'
15 use-build-blocker: true
17 - '.*-fuel-{deploy_type}-.*'
18 - '.*-compass-{deploy_type}-.*'
23 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO $IEC_TYPE'
26 - 'iec-{iecType}-{installer}-{deploy_type}-{os}-daily-{stream}-trigger'
29 - lf-infra-parameters:
33 - '{project}-defaults'
34 - '{installer}-{os}-defaults'
44 - project: 'iec-{iecType}-deploy-{installer}-{deploy_type}-{os}-daily-{stream}'
45 current-parameters: true
46 predefined-parameters:
47 DEPLOY_SCENARIO={scenario}
50 - project: 'validation-enea-daily-{stream}'
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}
64 {%- for uc in usecase -%}
65 {%- for ph in phase -%}
66 iec-{{ iecType }}-{{ ph }}-{{ uc }}-{{ installer }}-{{ deploy_type }}-{{ os }}-daily-{{ stream }}
67 {%- if not loop.last -%},{%- endif -%}
69 {%- if not loop.last -%},{%- endif -%}
71 current-parameters: true
75 build-step-failure-threshold: 'never'
76 failure-threshold: 'never'
77 unstable-threshold: 'FAILURE'
78 - project: 'iec-{iecType}-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
79 current-parameters: false
80 predefined-parameters: |
81 DEPLOY_SCENARIO={scenario}
87 id: akraino-iec-deploy
88 name: 'iec-{iecType}-deploy-{installer}-{deploy_type}-{os}-daily-{stream}'
91 properties: &properties
98 use-build-blocker: true
100 - '.*-{iecType}-deploy-{installer}-{deploy_type}-.*'
101 - '.*-{iecType}-destroy-{installer}-{deploy_type}-.*'
102 - '.*-{iecType}-install-.*-{installer}-{deploy_type}-.*'
106 - lf-infra-parameters:
110 - '{project}-defaults'
111 - '{installer}-{os}-defaults'
113 name: DEPLOY_SCENARIO
114 default: '{scenario}'
124 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO $IEC_TYPE'
128 credentials-id: '{jenkins-ssh-credential}'
129 url: '{git-url}/{project}.git'
130 refspec: '$GERRIT_REFSPEC'
131 branches: '$GERRIT_BRANCH'
137 timeout: '{submodule-timeout}'
138 choosing-strategy: default
141 - description-setter:
142 description: "POD: $NODE_NAME"
144 condition-kind: regex-match
149 !include-raw-escape: ../iec/iec-compass-build.sh
151 !include-raw-escape: ../iec/iec-compass-deploy.sh
153 !include-raw-escape: ../iec/iec-fdn-install.sh
155 condition-kind: regex-match
160 !include-raw-escape: ../iec/iec-fuel-deploy.sh
162 publishers: &publishers
164 recipients: armband@enea.com
168 id: akraino-iec-destroy
169 name: 'iec-{iecType}-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
171 node: '{slave-label}'
172 properties: *properties
174 - lf-infra-parameters:
178 - '{project}-defaults'
179 - '{installer}-{os}-defaults'
181 name: DEPLOY_SCENARIO
182 default: '{scenario}'
188 default: '-EEE -o {os}'
194 - description-setter:
195 description: "POD: $NODE_NAME"
197 !include-raw-escape: ../iec/iec-{installer}-destroy.sh
199 publishers: *publishers
202 id: akraino-iec-phase-usecase
203 name: 'iec-{iecType}-{phase}-{usecase}-{installer}-{deploy_type}-{os}-daily-{stream}'
205 node: '{slave-label}'
206 properties: *properties
209 - lf-infra-parameters:
213 - '{project}-defaults'
214 - '{installer}-{os}-defaults'
215 - '{usecase}-defaults'
219 name: '$BUILD_NUMBER - Usecase: ${usecase} DeployType: ${installer}-${deploy_type}'
225 !include-raw-escape: ../iec/iec-{usecase}.sh
227 publishers: *publishers