Skip to content

Commit

Permalink
feat: add fedora 40 to jenkins matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
bketelsen committed Apr 25, 2024
1 parent 4d2692c commit 54c49f9
Showing 1 changed file with 57 additions and 57 deletions.
114 changes: 57 additions & 57 deletions jenkins/jobs/image-fedora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,79 +6,79 @@
project-type: matrix

axes:
- axis:
name: architecture
type: slave
values:
- amd64
- arm64
- axis:
name: architecture
type: slave
values:
- amd64
- arm64

- axis:
name: release
type: user-defined
values:
- 38
- 39
- axis:
name: release
type: user-defined
values:
- 38
- 39
- 40

- axis:
name: variant
type: user-defined
values:
- default
- cloud
- axis:
name: variant
type: user-defined
values:
- default
- cloud

builders:
- shell: |-
cd /lxc-ci
INCUS_ARCHITECTURE="${architecture}"
- shell: |-
cd /lxc-ci
INCUS_ARCHITECTURE="${architecture}"
ARCH=${architecture}
[ "${ARCH}" = "amd64" ] && ARCH="x86_64"
[ "${ARCH}" = "arm64" ] && ARCH="aarch64"
ARCH=${architecture}
[ "${ARCH}" = "amd64" ] && ARCH="x86_64"
[ "${ARCH}" = "arm64" ] && ARCH="aarch64"
TYPE="container"
if [ "${architecture}" = "amd64" ] || [ "${architecture}" = "arm64" ]; then
TYPE="container,vm"
fi
TYPE="container"
if [ "${architecture}" = "amd64" ] || [ "${architecture}" = "arm64" ]; then
TYPE="container,vm"
fi
exec sudo /lxc-ci/bin/build-distro /lxc-ci/images/fedora.yaml \
${INCUS_ARCHITECTURE} ${TYPE} 1800 ${WORKSPACE} \
-o image.architecture=${ARCH} -o image.release=${release} \
-o image.variant=${variant}
exec sudo /lxc-ci/bin/build-distro /lxc-ci/images/fedora.yaml \
${INCUS_ARCHITECTURE} ${TYPE} 1800 ${WORKSPACE} \
-o image.architecture=${ARCH} -o image.release=${release} \
-o image.variant=${variant}
properties:
- build-discarder:
num-to-keep: 3
- build-discarder:
num-to-keep: 3

- raw:
!include: ../includes/webhook.yaml.inc
- raw: !include: ../includes/webhook.yaml.inc

publishers:
- archive:
artifacts: "*.qcow2,*.tar.xz,*.squashfs,image.yaml,serial"
only-if-success: true
- archive:
artifacts: "*.qcow2,*.tar.xz,*.squashfs,image.yaml,serial"
only-if-success: true

- workspace-cleanup:
fail-build: false
- workspace-cleanup:
fail-build: false

- trigger-parameterized-builds:
- project:
- test-image
predefined-parameters: |-
image=${JOB_NAME}
build=${BUILD_URL}
condition: SUCCESS
- trigger-parameterized-builds:
- project:
- test-image
predefined-parameters: |-
image=${JOB_NAME}
build=${BUILD_URL}
condition: SUCCESS

- naginator:
rerun-unstable-builds: true
rerun-matrix-part: true
max-failed-builds: 3
progressive-delay-increment: 300
progressive-delay-maximum: 900
- naginator:
rerun-unstable-builds: true
rerun-matrix-part: true
max-failed-builds: 3
progressive-delay-increment: 300
progressive-delay-maximum: 900

triggers:
- timed: '@daily'
- timed: "@daily"

wrappers:
- ansicolor:
colormap: css
- ansicolor:
colormap: css

0 comments on commit 54c49f9

Please sign in to comment.