blob: e4a82510b13a2c59127104c8e55cfaf05fb5cc8b [file] [log] [blame]
Jakub Josef9ab31442017-04-05 14:02:59 +02001classes:
2 - system.jenkins.client.job.image
Filip Pytloun7af94b32017-03-14 18:38:52 +01003parameters:
Filip Pytlouna83bbee2017-03-15 18:13:59 +01004 _param:
5 jenkins_packer_pipeline: "${_param:jenkins_gerrit_url}/mk/packer-templates"
Filip Pytloun7af94b32017-03-14 18:38:52 +01006 jenkins:
7 client:
8 job:
9 build-image-ubuntu-14-04:
10 type: workflow-scm
11 concurrent: false
12 discard:
13 build:
14 keep_num: 5
15 keep_days: 5
16 artifact:
17 keep_num: 6
18 keep_days: 6
19 scm:
20 type: git
21 url: "${_param:jenkins_packer_pipeline}"
22 credentials: "gerrit"
23 display_name: "[Images] Build Ubuntu 14.04 image"
24 param:
25 BUILD_OS:
26 type: string
27 default: "ubuntu-14.04"
28 BUILD_ONLY:
29 type: string
30 default: "qemu"
31 PACKER_DEBUG:
32 type: boolean
33 default: "false"
34 PACKER_URL:
35 type: string
36 default: "https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_linux_amd64.zip"
37 PACKER_ZIP:
38 type: string
39 default: "packer_0.8.6_linux_amd64.zip"
40 PACKER_ZIP_MD5:
41 type: string
42 default: "4cda1c44cf666fada495dd8e01522e1c"
43 PACKER_ARGS:
44 type: string
45 default: ""
46 UPLOAD_URL:
47 type: string
Filip Pytlounf4b81c02017-08-02 13:57:40 +020048 default: "${_param:jenkins_packer_upload_url}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010049 SKIP_UPLOAD:
50 type: boolean
51 default: "false"
52 CLEANUP_OLD:
53 type: boolean
54 default: "true"
55 CLEANUP_KEEP:
56 type: string
57 default: "3"
58 GLANCE_UPLOAD:
59 type: boolean
60 default: "true"
61 GLANCE_IMG_TYPES:
62 type: string
63 default: "qcow2"
64 GLANCE_URL:
65 type: string
Filip Pytloun0e5067b2017-06-28 16:26:04 +020066 default: "https://cloud-cz.bud.mirantis.net:5000"
Filip Pytloun7af94b32017-03-14 18:38:52 +010067 GLANCE_CREDENTIALS_ID:
68 type: string
Filip Pytloun0e5067b2017-06-28 16:26:04 +020069 default: "openstack-devcloud-credentials"
Filip Pytloun7af94b32017-03-14 18:38:52 +010070 GLANCE_PROJECT:
71 type: string
Filip Pytloun0e5067b2017-06-28 16:26:04 +020072 default: "mcp-mk"
Filip Pytloun7af94b32017-03-14 18:38:52 +010073 GLANCE_ARGS:
74 type: string
75 default: ""
76 GLANCE_PUBLIC:
77 type: boolean
78 default: "true"
79 OPENSTACK_API_CLIENT:
80 type: string
Filip Pytloun0e5067b2017-06-28 16:26:04 +020081 default: ""
Jiri Broulik07283c82018-04-11 09:36:33 +020082 IMAGE_NAME:
83 type: string
84 default: ubuntu-14-04-x64
85 EXTRA_VARIABLES:
86 type: text
87 default: ""
Filip Pytloun7af94b32017-03-14 18:38:52 +010088 build-image-ubuntu-16-04:
89 type: workflow-scm
90 concurrent: false
Alexander Evseev4589d712018-08-03 12:36:15 +020091 discard:
92 build:
93 keep_num: 5
94 keep_days: 5
95 artifact:
96 keep_num: 6
97 keep_days: 6
Filip Pytloun7af94b32017-03-14 18:38:52 +010098 scm:
99 type: git
100 url: "${_param:jenkins_packer_pipeline}"
101 credentials: "gerrit"
102 display_name: "[Images] Build Ubuntu 16.04 image"
103 param:
104 BUILD_OS:
105 type: string
106 default: "ubuntu-16.04"
107 BUILD_ONLY:
108 type: string
109 default: "qemu"
110 PACKER_DEBUG:
111 type: boolean
112 default: "false"
113 PACKER_URL:
114 type: string
115 default: "https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_linux_amd64.zip"
116 PACKER_ZIP:
117 type: string
118 default: "packer_0.8.6_linux_amd64.zip"
119 PACKER_ZIP_MD5:
120 type: string
121 default: "4cda1c44cf666fada495dd8e01522e1c"
122 PACKER_ARGS:
123 type: string
124 default: ""
125 UPLOAD_URL:
126 type: string
Jakub Josef9a647702017-09-04 18:36:05 +0200127 default: "${_param:jenkins_packer_upload_url}"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100128 SKIP_UPLOAD:
129 type: boolean
130 default: "false"
131 CLEANUP_OLD:
132 type: boolean
133 default: "true"
134 CLEANUP_KEEP:
135 type: string
136 default: "3"
137 GLANCE_UPLOAD:
138 type: boolean
139 default: "true"
140 GLANCE_IMG_TYPES:
141 type: string
142 default: "qcow2"
143 GLANCE_URL:
144 type: string
Filip Pytloun0e5067b2017-06-28 16:26:04 +0200145 default: "https://cloud-cz.bud.mirantis.net:5000"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100146 GLANCE_CREDENTIALS_ID:
147 type: string
Filip Pytloun0e5067b2017-06-28 16:26:04 +0200148 default: "openstack-devcloud-credentials"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100149 GLANCE_PROJECT:
150 type: string
Filip Pytloun0e5067b2017-06-28 16:26:04 +0200151 default: "mcp-mk"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100152 GLANCE_ARGS:
153 type: string
154 default: ""
155 GLANCE_PUBLIC:
156 type: boolean
157 default: "true"
158 OPENSTACK_API_CLIENT:
159 type: string
Filip Pytloun0e5067b2017-06-28 16:26:04 +0200160 default: ""
Jiri Broulik07283c82018-04-11 09:36:33 +0200161 IMAGE_NAME:
162 type: string
163 default: ubuntu-16-04-x64
164 EXTRA_VARIABLES:
165 type: text
166 default: ""