zuul-jobs/zuul.d/jobs.yaml
James E. Blair 32f2b50d4f Add file matchers to image build jobs
This will allow us to make changes to provider configuration
without rebuilding images every time.

Add the noop job for the cases where no other job would run.

Change-Id: Id9de7758ddeb675fb298fbb0edf4fa398e8bec71
2024-10-10 12:28:58 -07:00

101 lines
3.9 KiB
YAML

- job:
name: opendev-build-diskimage-base
description: |
The abstract base job for building VM images used in OpenDev's Zuul
If the variable ``image_upload_secret`` is provided (as a
secret) this job will upload the resulting image (this should be
done in image build pipelines). Otherwise, it will only build
the image without uploading it (this can be useful for check
pipelines).
parent: build-diskimage
timeout: 7200
post-timeout: 7200
abstract: true
pre-run:
- playbooks/opendev-build-diskimage-base/pre.yaml
post-run:
- playbooks/opendev-build-diskimage-base/post.yaml
files:
- 'dib-elements/.*'
- 'playbooks/opendev-build-diskimage-base/.*'
- 'roles/make-source-repositories-cache/.*'
vars:
# TODO(corvus): This will eventually be supplied by Zuul
build_diskimage_formats:
- qcow2
build_diskimage_elements: &base_elements
- vm
- simple-init
- openstack-repos
- nodepool-base
- growroot
- infra-package-needs
build_diskimage_environment:
TMPDIR: /opt/dib_tmp
ELEMENTS_PATH: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/opendev/zuul-jobs'].src_dir }}/dib-elements"
# TODO: Do we want streaming logs?
DIB_QUIET: '0'
DIB_NO_TMPFS: '1'
DIB_CHECKSUM: '1'
DIB_IMAGE_CACHE: /opt/dib_cache
DIB_JOURNAL_SIZE: '512'
DIB_GRUB_TIMEOUT: '0'
GIT_HTTP_LOW_SPEED_TIME: '300'
GIT_HTTP_LOW_SPEED_LIMIT: '1000'
DIB_SHOW_IMAGE_USAGE: '1'
ZUUL_USER_SSH_PUBLIC_KEY: |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDh5u0DWNi0d3uqI82izAxVTUTrGl36L3szEqV9WrilGmxaTtp9X7HrktJ5J+rvxQqz39llTf1v7iYA4CNKto/48RBAB0mKEEI4x4iw+
fu/BLU7nu7ewSfXLUxHahxaTgIk2KcbegknD5NzMjalyfNfgTPDGv8BjwHeeNdZmJMBvPFGu6fO48M4yK1tiQn0kAkaH4oII/M4pyF8vy9tPTODAD7RvnMvQAb08LZZvE/IPzJAHNXFRb1v+DBa38
fOvdyaz/nibrsxiOWZxQVLgjYciUeDy1xvXADaWlqvxmLy+90LHbJFbGxK4AN0mWfwBiUMVyxZjkun39pjTNl2k09OhOq+R52UqnehMc4eBdZCddnCUq4/efbFCJkqe5wY+SE8fYybJjauUL64zyr
wf6yfWkXvPVHWa9Y+NCmvH8PCBUcsQnwO7l/Yb4N+8+u6zkODyuc9wLAY+DpnptE3plXtvUs5negC4fvJSnOHpWXuoi9yzp7IlPf6fSjMMDQo0JjCYJwazdzqrIH2VSCcfHAqWF0ECR8IgwZV1bp0
xFe0UN0Gjsgkozqf8rvs1AYyTSeD19Wg9j+crTke8E1sfoI/qFzHwzBQFKJ+2l0cs7pZWJBARlhbt1j1IouS2aH+74xwsavRhBz4IsFTPqWiP6JTrgk5cgKRnTqInzNfdaLeUw== zuul-worker@
openstack.org
- job:
name: opendev-build-diskimage-base-debuntu
description: |
An abstract base job for building Debian or Ubuntu based VM images
parent: opendev-build-diskimage-base
abstract: true
vars:
build_diskimage_environment:
DIB_APT_LOCAL_CACHE: '0'
DIB_DISABLE_APT_CLEANUP: '1'
DIB_DEBOOTSTRAP_EXTRA_ARGS: '--no-check-gpg'
- job:
name: opendev-build-diskimage-debian-bullseye
description: |
Build the OpenDev Debian bullseye VM image
parent: opendev-build-diskimage-base-debuntu
vars:
build_diskimage_image_name: debian-bullseye
build_diskimage_elements:
- *base_elements
- debian-minimal
- cache-devstack
build_diskimage_environment:
DIB_RELEASE: 'bullseye'
DIB_DISTRIBUTION_MIRROR: 'https://{{ zuul_site_mirror_fqdn }}/debian'
DIB_DEBIAN_SECURITY_MIRROR:
'https://{{ zuul_site_mirror_fqdn }}/debian-security'
DIB_BLOCK_DEVICE_CONFIG: |
# Default single partition loopback
- local_loop:
name: image0
- partitioning:
base: image0
label: mbr
partitions:
- name: root
flags: [ boot, primary ]
size: 100%
mkfs:
mount:
mount_point: /
fstab:
options: "defaults,nobarrier,noatime"
fsck-passno: 1