forked from coreos/coreos-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cci.jenkinsfile
48 lines (41 loc) · 1.82 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
// Documentation: https://github.com/coreos/coreos-ci/blob/main/README-upstream-ci.md
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'
// Make sure cosa is using the binary we just built.
shwrap("rsync -rlv install/usr/ /usr/")
fcosBuild(overlays: ["install"])
stage("Build metal+live") {
shwrap("cd /srv/fcos && cosa buildextend-metal")
shwrap("cd /srv/fcos && cosa buildextend-metal4k")
shwrap("cd /srv/fcos && cosa buildextend-live --fast")
// Test metal with an uncompressed image and metal4k with a
// compressed one
shwrap("cd /srv/fcos && cosa compress --fast --artifact=metal4k")
}
stage("Test ISO") {
// No need to run the iso-live-login/iso-as-disk scenarios
fcosKolaTestIso(
cosaDir: "/srv/fcos",
scenarios: "pxe-install,pxe-offline-install,iso-install,iso-offline-install",
scenarios4k: "iso-install,iso-offline-install",
skipUEFI: true
)
// for embed commands, test both the built ISO and a minimal fixture
// with the legacy embed areas
shwrap("tests/iso-ignition.sh /srv/fcos/builds/latest/x86_64/*.iso")
shwrap("tests/iso-ignition.sh fixtures/iso/embed-areas-2021-09.iso.xz")
shwrap("tests/iso-kargs.sh /srv/fcos/builds/latest/x86_64/*.iso")
shwrap("tests/iso-kargs.sh fixtures/iso/embed-areas-2021-09.iso.xz")
shwrap("tests/iso-inspect.sh /srv/fcos/builds/latest/x86_64/*.iso")
// just pass the build dir; this test also uses the other live artifacts
shwrap("tests/iso-extract-pxe.sh /srv/fcos/builds/latest/x86_64")
}
}