blob: 8cd2af0d46fe4ef2954973e809a703e46b2a3467 [file] [log] [blame]
- job-template:
project-type: pipeline
description: '{job-description}'
concurrent: false
disabled: false
name: packer-image-system.foundation
parameters:
- string:
name: IMAGE_NAME
default: system.foundation
description: 'Name of the resulting qcow2 image'
trim: 'false'
- string:
name: BUILD_CONFIG_DRIVE_PATH
default: tcp_tests/templates/_packer/foundation/config-drive
description: 'Relative path in tcp-qa to the directory with meta-data and user-data files'
trim: 'false'
- string:
name: BUILD_PACKER_CONFIG_PATH
default: tcp_tests/templates/_packer/foundation/packer.json
description: 'Relative path in tcp-qa to the file with packer config (JSON)'
trim: 'false'
- string:
name: BASE_IMAGE_URL
default: http://cloud-images.ubuntu.com/releases/xenial/release-20180306/ubuntu-16.04-server-cloudimg-amd64-disk1.img
description: 'Base image to build a new image'
trim: 'false'
- string:
name: BASE_IMAGE_MD5
default: 566efef1d6f12e7d3a994c2405bdb642
description: 'Base image MD5 checksum'
trim: 'false'
- string:
name: PACKER_URL
default: https://releases.hashicorp.com/packer/1.4.1/packer_1.4.1_linux_amd64.zip
description: 'URL to the zip archive with packer binary, see https://releases.hashicorp.com/packer/'
trim: 'false'
- string:
name: PACKER_ZIP_MD5
default: 35cc6dd2a2b2e50e76090197d7c12a90
description: 'MD5 of the zip archive with packer binary'
trim: 'false'
- string:
name: OS_AUTH_URL
default: https://keystone.ic-eu.ssl.mirantis.net/v3
description: 'Openstack keystone catalog endpoint, for example https://10.90.0.80:5000/v3'
trim: 'false'
- string:
name: OS_PROJECT_NAME
default: sre-team
description: ''
trim: 'false'
- string:
name: OS_USER_DOMAIN_NAME
default: ldap_mirantis
description: 'OpenStack user domain name'
trim: 'false'
- string:
name: OS_CREDENTIALS
default: sre-qa-ci-eu
description: 'Jenkins credentials ID with username and password to create a heat stack in OpenStack'
trim: 'false'
- bool:
name: UPLOAD_IMAGE_TO_GLANCE
default: True
description: 'If True: upload image to glance; if False: store as an artifact'
trim: 'false'
- string:
name: TCP_QA_REFS
default:
description: |
Example: refs/changes/89/411189/36
(for now - only one reference allowed)
trim: 'false'
pipeline-scm:
lightweight-checkout: false
scm:
- git:
branches:
- FETCH_HEAD
refspec: ${{TCP_QA_REFS}}
url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
script-path: jobs/pipelines/packer-image-create.groovy
logrotate:
daysToKeep: 30