-
Notifications
You must be signed in to change notification settings - Fork 93
/
.cci.jenkinsfile
49 lines (41 loc) · 1.66 KB
/
.cci.jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Documentation: https://github.com/coreos/coreos-ci/blob/main/README-upstream-ci.md
properties([
// abort previous runs when a PR is updated to save resources
disableConcurrentBuilds(abortPrevious: true)
])
buildPod {
checkout scm
stage("Build") {
shwrap("make && make install DESTDIR=install")
stash name: 'build', includes: 'install/**'
}
}
cosaPod(buildroot: true, runAsUser: 0) {
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/")
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")
stage("Build metal+live") {
shwrap("cd /srv/coreos && cosa buildextend-metal")
shwrap("cd /srv/coreos && cosa buildextend-metal4k")
shwrap("cd /srv/coreos && cosa buildextend-live --fast")
// Test metal with an uncompressed image and metal4k with a
// compressed one
shwrap("cd /srv/coreos && cosa compress --fast --artifact=metal4k")
}
stage("Test ISO") {
// No need to run the iso-live-login/iso-as-disk scenarios
kolaTestIso(
extraArgs: "--denylist-test iso-as-disk.* --denylist-test iso-live-login.*"
)
}
stage("Image tests") {
shwrap("COREOS_INSTALLER_TEST_INSTALLED_BINARY=1 tests/images.sh /srv/coreos/builds/latest/x86_64")
}
}