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 {%- if deploy_type not in ['virtual'] -%}
65 {%- for uc in usecase -%}
66 {%- for ph in phase -%}
67 iec-{{ iecType }}-{{ ph }}-{{ uc }}-{{ installer }}-{{ deploy_type }}-{{ os }}-daily-{{ stream }}
68 {%- if not loop.last -%},{%- endif -%}
70 {%- if not loop.last -%},{%- endif -%}
73 current-parameters: true
77 build-step-failure-threshold: 'never'
78 failure-threshold: 'never'
79 unstable-threshold: 'FAILURE'
80 - project: 'iec-{iecType}-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
81 current-parameters: false
82 predefined-parameters: |
83 DEPLOY_SCENARIO={scenario}
89 id: akraino-iec-deploy
90 name: 'iec-{iecType}-deploy-{installer}-{deploy_type}-{os}-daily-{stream}'
93 properties: &properties
100 use-build-blocker: true
102 - '.*-{iecType}-deploy-{installer}-{deploy_type}-.*'
103 - '.*-{iecType}-destroy-{installer}-{deploy_type}-.*'
104 - '.*-{iecType}-install-.*-{installer}-{deploy_type}-.*'
108 - lf-infra-parameters:
112 - '{project}-defaults'
113 - '{installer}-{os}-defaults'
115 name: DEPLOY_SCENARIO
116 default: '{scenario}'
126 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO $IEC_TYPE'
130 credentials-id: '{jenkins-ssh-credential}'
131 url: '{git-url}/{project}.git'
132 refspec: '$GERRIT_REFSPEC'
133 branches: '$GERRIT_BRANCH'
139 timeout: '{submodule-timeout}'
140 choosing-strategy: default
143 - description-setter:
144 description: "POD: $NODE_NAME"
146 condition-kind: regex-match
151 !include-raw-escape: ../iec/iec-compass-build.sh
153 !include-raw-escape: ../iec/iec-compass-deploy.sh
155 !include-raw-escape: ../iec/iec-fdn-install.sh
157 condition-kind: regex-match
162 !include-raw-escape: ../iec/iec-fuel-deploy.sh
164 publishers: &publishers
166 recipients: armband@enea.com
170 id: akraino-iec-destroy
171 name: 'iec-{iecType}-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
173 node: '{slave-label}'
174 properties: *properties
176 - lf-infra-parameters:
180 - '{project}-defaults'
181 - '{installer}-{os}-defaults'
183 name: DEPLOY_SCENARIO
184 default: '{scenario}'
190 default: '-EEE -o {os}'
196 - description-setter:
197 description: "POD: $NODE_NAME"
199 !include-raw-escape: ../iec/iec-{installer}-destroy.sh
201 publishers: *publishers
204 id: akraino-iec-phase-usecase
205 name: 'iec-{iecType}-{phase}-{usecase}-{installer}-{deploy_type}-{os}-daily-{stream}'
207 node: '{slave-label}'
208 properties: *properties
211 - lf-infra-parameters:
215 - '{project}-defaults'
216 - '{installer}-{os}-defaults'
217 - '{usecase}-defaults'
221 name: '$BUILD_NUMBER - Usecase: ${usecase} DeployType: ${installer}-${deploy_type}'
227 !include-raw-escape: ../iec/iec-{usecase}.sh
229 publishers: *publishers