Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions .cci.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ buildPod {
}
}

cosaPod(buildroot: true, runAsUser: 0) {
cosaPod {
checkout scm

unstash name: 'build'

// Delete the OS copy of coreos-installer so we don't test it by mistake
shwrap("rm /usr/bin/coreos-installer")
// Make sure cosa is using the binary we just built.
shwrap("rsync -rlv install/usr/ /usr/")
// Overwrite the `coreos-installer` that was a part of the COSA
// container with the one built here. This ensures we test the
// one that was built and not the one delivered by COSA.
shwrap("""
rm -f /usr/bin/coreos-installer
cp install/usr/bin/coreos-installer /usr/bin/
""")

cosaBuild(skipKola: true, overlays: ["install"])
// Skipping kdump.crash due to CI failure in coreos-installer repo
// https://github.com/coreos/fedora-coreos-tracker/issues/1075
kola(extraArgs: "--denylist-test ext.config.kdump.crash")
cosaBuild(overlays: ["install"])

stage("Build metal+live") {
shwrap("cd /srv/coreos && cosa osbuild metal metal4k live")
Expand All @@ -42,6 +42,9 @@ cosaPod(buildroot: true, runAsUser: 0) {
)
}
stage("Image tests") {
// Update the perms of the generated ISO so our tests can modify in place.
shwrap("find /srv/coreos/builds/ -name '*.iso' | xargs chmod -v 666")
// Run the tests!
shwrap("COREOS_INSTALLER_TEST_INSTALLED_BINARY=1 tests/images.sh /srv/coreos/builds/latest/x86_64")
}
}
Loading