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-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 Pytloun | f4b81c0 | 2017-08-02 13:57:40 +0200 | [diff] [blame] | 48 | default: "${_param:jenkins_packer_upload_url}" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 49 | 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 Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame] | 66 | default: "https://cloud-cz.bud.mirantis.net:5000" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 67 | GLANCE_CREDENTIALS_ID: |
| 68 | type: string |
Filip Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame] | 69 | default: "openstack-devcloud-credentials" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 70 | GLANCE_PROJECT: |
| 71 | type: string |
Filip Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame] | 72 | default: "mcp-mk" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 73 | GLANCE_ARGS: |
| 74 | type: string |
| 75 | default: "" |
| 76 | GLANCE_PUBLIC: |
| 77 | type: boolean |
| 78 | default: "true" |
| 79 | OPENSTACK_API_CLIENT: |
| 80 | type: string |
Filip Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame] | 81 | default: "" |
Jiri Broulik | 07283c8 | 2018-04-11 09:36:33 +0200 | [diff] [blame] | 82 | IMAGE_NAME: |
| 83 | type: string |
| 84 | default: ubuntu-14-04-x64 |
| 85 | EXTRA_VARIABLES: |
| 86 | type: text |
| 87 | default: "" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 88 | build-image-ubuntu-16-04: |
| 89 | type: workflow-scm |
| 90 | concurrent: false |
Alexander Evseev | 4589d71 | 2018-08-03 12:36:15 +0200 | [diff] [blame^] | 91 | discard: |
| 92 | build: |
| 93 | keep_num: 5 |
| 94 | keep_days: 5 |
| 95 | artifact: |
| 96 | keep_num: 6 |
| 97 | keep_days: 6 |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 98 | 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 Josef | 9a64770 | 2017-09-04 18:36:05 +0200 | [diff] [blame] | 127 | default: "${_param:jenkins_packer_upload_url}" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 128 | 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 Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame] | 145 | default: "https://cloud-cz.bud.mirantis.net:5000" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 146 | GLANCE_CREDENTIALS_ID: |
| 147 | type: string |
Filip Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame] | 148 | default: "openstack-devcloud-credentials" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 149 | GLANCE_PROJECT: |
| 150 | type: string |
Filip Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame] | 151 | default: "mcp-mk" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 152 | GLANCE_ARGS: |
| 153 | type: string |
| 154 | default: "" |
| 155 | GLANCE_PUBLIC: |
| 156 | type: boolean |
| 157 | default: "true" |
| 158 | OPENSTACK_API_CLIENT: |
| 159 | type: string |
Filip Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame] | 160 | default: "" |
Jiri Broulik | 07283c8 | 2018-04-11 09:36:33 +0200 | [diff] [blame] | 161 | IMAGE_NAME: |
| 162 | type: string |
| 163 | default: ubuntu-16-04-x64 |
| 164 | EXTRA_VARIABLES: |
| 165 | type: text |
| 166 | default: "" |