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 |
| 48 | default: "http://jenkins:eyoocaiG3ADireK3Eef8gae1roh5oox0@10.10.100.85:8088/" |
| 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: "" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 82 | build-image-ubuntu-16-04: |
| 83 | type: workflow-scm |
| 84 | concurrent: false |
| 85 | scm: |
| 86 | type: git |
| 87 | url: "${_param:jenkins_packer_pipeline}" |
| 88 | credentials: "gerrit" |
| 89 | display_name: "[Images] Build Ubuntu 16.04 image" |
| 90 | param: |
| 91 | BUILD_OS: |
| 92 | type: string |
| 93 | default: "ubuntu-16.04" |
| 94 | BUILD_ONLY: |
| 95 | type: string |
| 96 | default: "qemu" |
| 97 | PACKER_DEBUG: |
| 98 | type: boolean |
| 99 | default: "false" |
| 100 | PACKER_URL: |
| 101 | type: string |
| 102 | default: "https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_linux_amd64.zip" |
| 103 | PACKER_ZIP: |
| 104 | type: string |
| 105 | default: "packer_0.8.6_linux_amd64.zip" |
| 106 | PACKER_ZIP_MD5: |
| 107 | type: string |
| 108 | default: "4cda1c44cf666fada495dd8e01522e1c" |
| 109 | PACKER_ARGS: |
| 110 | type: string |
| 111 | default: "" |
| 112 | UPLOAD_URL: |
| 113 | type: string |
| 114 | default: "http://jenkins:eyoocaiG3ADireK3Eef8gae1roh5oox0@10.10.100.85:8088/" |
| 115 | SKIP_UPLOAD: |
| 116 | type: boolean |
| 117 | default: "false" |
| 118 | CLEANUP_OLD: |
| 119 | type: boolean |
| 120 | default: "true" |
| 121 | CLEANUP_KEEP: |
| 122 | type: string |
| 123 | default: "3" |
| 124 | GLANCE_UPLOAD: |
| 125 | type: boolean |
| 126 | default: "true" |
| 127 | GLANCE_IMG_TYPES: |
| 128 | type: string |
| 129 | default: "qcow2" |
| 130 | GLANCE_URL: |
| 131 | type: string |
Filip Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame^] | 132 | default: "https://cloud-cz.bud.mirantis.net:5000" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 133 | GLANCE_CREDENTIALS_ID: |
| 134 | type: string |
Filip Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame^] | 135 | default: "openstack-devcloud-credentials" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 136 | GLANCE_PROJECT: |
| 137 | type: string |
Filip Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame^] | 138 | default: "mcp-mk" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 139 | GLANCE_ARGS: |
| 140 | type: string |
| 141 | default: "" |
| 142 | GLANCE_PUBLIC: |
| 143 | type: boolean |
| 144 | default: "true" |
| 145 | OPENSTACK_API_CLIENT: |
| 146 | type: string |
Filip Pytloun | 0e5067b | 2017-06-28 16:26:04 +0200 | [diff] [blame^] | 147 | default: "" |