Jakub Josef | 9ab3144 | 2017-04-05 14:02:59 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - system.jenkins.client.job.image |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 3 | parameters: |
Filip Pytloun | a83bbee | 2017-03-15 18:13:59 +0100 | [diff] [blame] | 4 | _param: |
| 5 | jenkins_packer_pipeline: "${_param:jenkins_gerrit_url}/mk/packer-templates" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 6 | jenkins: |
| 7 | client: |
| 8 | job: |
| 9 | build-image-centos-7: |
| 10 | type: workflow-scm |
| 11 | concurrent: false |
Alexander Evseev | 4589d71 | 2018-08-03 12:36:15 +0200 | [diff] [blame] | 12 | discard: |
| 13 | build: |
| 14 | keep_num: 5 |
| 15 | artifact: |
| 16 | keep_num: 5 |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 17 | scm: |
| 18 | type: git |
| 19 | url: "${_param:jenkins_packer_pipeline}" |
| 20 | credentials: "gerrit" |
| 21 | display_name: "[Images] Build Centos 7" |
| 22 | param: |
| 23 | BUILD_OS: |
| 24 | type: string |
| 25 | default: "centos-7" |
| 26 | BUILD_ONLY: |
| 27 | type: string |
| 28 | default: "qemu" |
| 29 | PACKER_DEBUG: |
| 30 | type: boolean |
| 31 | default: "false" |
| 32 | PACKER_URL: |
| 33 | type: string |
| 34 | default: "https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_linux_amd64.zip" |
| 35 | PACKER_ZIP: |
| 36 | type: string |
| 37 | default: "packer_0.8.6_linux_amd64.zip" |
| 38 | PACKER_ZIP_MD5: |
| 39 | type: string |
| 40 | default: "4cda1c44cf666fada495dd8e01522e1c" |
| 41 | PACKER_ARGS: |
| 42 | type: string |
| 43 | default: "" |
| 44 | UPLOAD_URL: |
| 45 | type: string |
Jakub Josef | 9a64770 | 2017-09-04 18:36:05 +0200 | [diff] [blame] | 46 | default: "${_param:jenkins_packer_upload_url}" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 47 | SKIP_UPLOAD: |
| 48 | type: boolean |
| 49 | default: "false" |
| 50 | CLEANUP_OLD: |
| 51 | type: boolean |
| 52 | default: "true" |
| 53 | CLEANUP_KEEP: |
| 54 | type: string |
| 55 | default: "3" |
| 56 | GLANCE_UPLOAD: |
| 57 | type: boolean |
| 58 | default: "true" |
| 59 | GLANCE_IMG_TYPES: |
| 60 | type: string |
| 61 | default: "qcow2" |
| 62 | GLANCE_URL: |
| 63 | type: string |
Filip Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame] | 64 | default: "https://cloud-cz.bud.mirantis.net:5000" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 65 | GLANCE_CREDENTIALS_ID: |
| 66 | type: string |
Filip Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame] | 67 | default: "openstack-devcloud-credentials" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 68 | GLANCE_PROJECT: |
| 69 | type: string |
Filip Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame] | 70 | default: "mcp-mk" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 71 | GLANCE_ARGS: |
| 72 | type: string |
| 73 | default: "" |
| 74 | GLANCE_PUBLIC: |
| 75 | type: boolean |
| 76 | default: "true" |
| 77 | OPENSTACK_API_CLIENT: |
| 78 | type: string |
Filip Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame] | 79 | default: "" |
Jiri Broulik | 07283c8 | 2018-04-11 09:36:33 +0200 | [diff] [blame] | 80 | IMAGE_NAME: |
| 81 | type: string |
| 82 | default: centos-7-x64 |
| 83 | EXTRA_VARIABLES: |
| 84 | type: text |
| 85 | default: "" |