blob: 8cd2af0d46fe4ef2954973e809a703e46b2a3467 [file] [log] [blame]
Vladimir Khlyunev37274382023-06-23 02:09:14 +04001- job-template:
2 project-type: pipeline
3 description: '{job-description}'
4 concurrent: false
5 disabled: false
6 name: packer-image-system.foundation
7 parameters:
8 - string:
9 name: IMAGE_NAME
10 default: system.foundation
11 description: 'Name of the resulting qcow2 image'
12 trim: 'false'
13 - string:
14 name: BUILD_CONFIG_DRIVE_PATH
15 default: tcp_tests/templates/_packer/foundation/config-drive
16 description: 'Relative path in tcp-qa to the directory with meta-data and user-data files'
17 trim: 'false'
18 - string:
19 name: BUILD_PACKER_CONFIG_PATH
20 default: tcp_tests/templates/_packer/foundation/packer.json
21 description: 'Relative path in tcp-qa to the file with packer config (JSON)'
22 trim: 'false'
23 - string:
24 name: BASE_IMAGE_URL
25 default: http://cloud-images.ubuntu.com/releases/xenial/release-20180306/ubuntu-16.04-server-cloudimg-amd64-disk1.img
26 description: 'Base image to build a new image'
27 trim: 'false'
28 - string:
29 name: BASE_IMAGE_MD5
30 default: 566efef1d6f12e7d3a994c2405bdb642
31 description: 'Base image MD5 checksum'
32 trim: 'false'
33 - string:
34 name: PACKER_URL
35 default: https://releases.hashicorp.com/packer/1.4.1/packer_1.4.1_linux_amd64.zip
36 description: 'URL to the zip archive with packer binary, see https://releases.hashicorp.com/packer/'
37 trim: 'false'
38 - string:
39 name: PACKER_ZIP_MD5
40 default: 35cc6dd2a2b2e50e76090197d7c12a90
41 description: 'MD5 of the zip archive with packer binary'
42 trim: 'false'
43 - string:
44 name: OS_AUTH_URL
45 default: https://keystone.ic-eu.ssl.mirantis.net/v3
46 description: 'Openstack keystone catalog endpoint, for example https://10.90.0.80:5000/v3'
47 trim: 'false'
48 - string:
49 name: OS_PROJECT_NAME
50 default: sre-team
51 description: ''
52 trim: 'false'
53 - string:
54 name: OS_USER_DOMAIN_NAME
55 default: ldap_mirantis
56 description: 'OpenStack user domain name'
57 trim: 'false'
58 - string:
59 name: OS_CREDENTIALS
60 default: sre-qa-ci-eu
61 description: 'Jenkins credentials ID with username and password to create a heat stack in OpenStack'
62 trim: 'false'
63 - bool:
64 name: UPLOAD_IMAGE_TO_GLANCE
65 default: True
66 description: 'If True: upload image to glance; if False: store as an artifact'
67 trim: 'false'
68 - string:
69 name: TCP_QA_REFS
70 default:
71 description: |
72 Example: refs/changes/89/411189/36
73 (for now - only one reference allowed)
74 trim: 'false'
75
76 pipeline-scm:
77 lightweight-checkout: false
78 scm:
79 - git:
80 branches:
81 - FETCH_HEAD
82 refspec: ${{TCP_QA_REFS}}
83 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
84 script-path: jobs/pipelines/packer-image-create.groovy
85 logrotate:
86 daysToKeep: 30