blob: 8d7e1deb06cff48e49b73bbe0e46f30a6aaba8c6 [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
91 scm:
92 type: git
93 url: "${_param:jenkins_packer_pipeline}"
94 credentials: "gerrit"
95 display_name: "[Images] Build Ubuntu 16.04 image"
96 param:
97 BUILD_OS:
98 type: string
99 default: "ubuntu-16.04"
100 BUILD_ONLY:
101 type: string
102 default: "qemu"
103 PACKER_DEBUG:
104 type: boolean
105 default: "false"
106 PACKER_URL:
107 type: string
108 default: "https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_linux_amd64.zip"
109 PACKER_ZIP:
110 type: string
111 default: "packer_0.8.6_linux_amd64.zip"
112 PACKER_ZIP_MD5:
113 type: string
114 default: "4cda1c44cf666fada495dd8e01522e1c"
115 PACKER_ARGS:
116 type: string
117 default: ""
118 UPLOAD_URL:
119 type: string
Jakub Josef9a647702017-09-04 18:36:05 +0200120 default: "${_param:jenkins_packer_upload_url}"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100121 SKIP_UPLOAD:
122 type: boolean
123 default: "false"
124 CLEANUP_OLD:
125 type: boolean
126 default: "true"
127 CLEANUP_KEEP:
128 type: string
129 default: "3"
130 GLANCE_UPLOAD:
131 type: boolean
132 default: "true"
133 GLANCE_IMG_TYPES:
134 type: string
135 default: "qcow2"
136 GLANCE_URL:
137 type: string
Filip Pytloun0e5067b2017-06-28 16:26:04 +0200138 default: "https://cloud-cz.bud.mirantis.net:5000"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100139 GLANCE_CREDENTIALS_ID:
140 type: string
Filip Pytloun0e5067b2017-06-28 16:26:04 +0200141 default: "openstack-devcloud-credentials"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100142 GLANCE_PROJECT:
143 type: string
Filip Pytloun0e5067b2017-06-28 16:26:04 +0200144 default: "mcp-mk"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100145 GLANCE_ARGS:
146 type: string
147 default: ""
148 GLANCE_PUBLIC:
149 type: boolean
150 default: "true"
151 OPENSTACK_API_CLIENT:
152 type: string
Filip Pytloun0e5067b2017-06-28 16:26:04 +0200153 default: ""
Jiri Broulik07283c82018-04-11 09:36:33 +0200154 IMAGE_NAME:
155 type: string
156 default: ubuntu-16-04-x64
157 EXTRA_VARIABLES:
158 type: text
159 default: ""