Merge "[iec] Add deploy jobs"
[ci-management.git] / jjb / iec / iec.yaml
1 ---
2 - project:
3     name: 'iec'
4     project-name: 'iec'
5     project: '{project-name}'
6     views:
7       - project-view
8     # -------------------------------
9     # BRANCH DEFINITIONS
10     # -------------------------------
11     stream:
12       - master:
13           branch: '{stream}'
14           gs-pathname: ''
15           disabled: false
16
17     # -------------------------------
18     # DEPLOY TYPE DEFINITIONS
19     # -------------------------------
20     deploy-type:
21       - fuel-baremetal:
22           slave-label: 'aarch64_dev'
23           scenario: 'k8-calico-iec-noha'
24       - fuel-virtual:
25           slave-label: 'aarch64_dev'
26           scenario: 'k8-calico-iec-noha'
27
28     jobs:
29       - 'iec-{deploy-type}-daily-{stream}'
30       - 'iec-deploy-{deploy-type}-daily-{stream}'
31
32 ##############
33 # PARAMETERS #
34 ##############
35 - parameter:
36     name: 'iec-defaults'
37     parameters:
38       - string:
39           name: INSTALLER_IP
40           default: '10.20.0.2'
41           description: 'IP of the installer'
42       - string:
43           name: SSH_KEY
44           default: "/var/lib/opnfv/mcp.rsa"
45           description: 'Path to private SSH key to access environment nodes'
46       - string:
47           name: EXTERNAL_NETWORK
48           default: 'floating_net'
49           description: 'external network for test'
50       - string:
51           name: CI_DEBUG
52           default: 'false'
53           description: "Show debug output information"
54
55 ########################
56 # job templates
57 ########################
58 - job-template:
59     name: 'iec-{deploy-type}-daily-{stream}'
60     disabled: '{obj:disabled}'
61     concurrent: false
62     node: '{slave-label}'
63     properties:
64       - throttle:
65           enabled: true
66           max-total: 4
67           max-per-node: 1
68           option: 'project'
69       - build-blocker:
70           use-build-blocker: true
71           blocking-jobs:
72             - '.*-{deploy-type}-daily-.*'
73           blocking-level: 'NODE'
74
75     wrappers:
76       - build-name:
77           name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
78
79     triggers:
80       - 'iec-{deploy-type}-daily-{stream}-trigger'
81
82     parameters:
83       - lf-infra-parameters:
84           project: '{project}'
85           stream: '{stream}'
86           branch: '{branch}'
87       - '{project}-defaults'
88       - string:
89           name: DEPLOY_SCENARIO
90           default: 'k8-calico-iec-noha'
91
92     builders:
93       - trigger-builds:
94           - project: 'iec-deploy-{deploy-type}-daily-{stream}'
95             current-parameters: false
96             predefined-parameters: |
97               DEPLOY_SCENARIO={scenario}
98               INSTALLER_VERSION={stream}
99             same-node: true
100             block: true
101
102 - job-template:
103     name: 'iec-deploy-{deploy-type}-daily-{stream}'
104     concurrent: true
105     node: '{slave-label}'
106     properties:
107       - throttle:
108           enabled: true
109           max-total: 4
110           max-per-node: 1
111           option: 'project'
112       - build-blocker:
113           use-build-blocker: true
114           blocking-jobs:
115             - '.*-deploy-{deploy-type}-daily-*'
116           blocking-level: 'NODE'
117
118     parameters:
119       - lf-infra-parameters:
120           project: '{project}'
121           stream: '{stream}'
122           branch: '{branch}'
123       - '{project}-defaults'
124       - string:
125           name: DEPLOY_SCENARIO
126           default: 'k8-calico-iec-noha'
127
128     wrappers:
129       - build-name:
130           name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
131
132     scm:
133       - lf-infra-gerrit-scm:
134           jenkins-ssh-credential: '{jenkins-ssh-credential}'
135           git-url: '{git-url}/{project}.git'
136           refspec: ''
137           branch: '{branch}'
138           submodule-recursive: false
139           submodule-timeout: '{submodule-timeout}'
140           choosing-strategy: default
141
142     builders:
143       - shell:
144           !include-raw-escape: ./iec-fuel-deploy.sh
145
146     publishers:
147       - email:
148           recipients: armband@enea.com
149
150 ########################
151 # trigger macros
152 ########################
153 # CI PODs
154 # ----------------------------------------------------------------
155 # Akraino IEC CI Baremetal Triggers running against master branch
156 # ----------------------------------------------------------------
157 - trigger:
158     name: 'iec-fuel-virtual-daily-master-trigger'
159     triggers:
160       - timed: '0 1 * * *'
161 - trigger:
162     name: 'iec-fuel-baremetal-daily-master-trigger'
163     triggers:
164       - timed: ''