Diskimage-Builder Jobs

build-diskimage

Build an image using diskimage-builder

Note that this job does not perform any actions with the image after building it. In particular, due to the typical sizes of diskimages, it does not move the image artifact to the executor or prepare it to be uploaded to log storage.

build_diskimage_image_name

Name of the image to build.

build_diskimage_formats
Default: ['qcow2']
Type: list

List of image types to generate.

build_diskimage_elements
Default: ['ubuntu', 'vm']
Type: list

List of elements that should be used when creating the disk image.

For ease of use with YAML anchors, this may be provided as a list of lists which will be flattened automatically.

build_diskimage_environment
Type: dict

Environment variables for the diskimage builder command may be supplied using this variable (or by directly using the Ansible environment argument).

build_diskimage_image_root
Default: "{{ ansible_user_dir }}/dib-images"

Directory to store the build images.

build_diskimage_logs_dir
Default: {{ ansible_user_dir }}/zuul-output/logs

The path where the log output of the diskimage-builder shall be written to

build_diskimage_retry_limit
Default: 0

The number of times the build-diskimage command shall be retried until successful.

build_diskimage_retry_delay
Default: 120

The number of seconds to wait between retries of the build-diskimage command.