forked from coreos/ignition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cci.jenkinsfile
36 lines (31 loc) · 1.4 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
// Documentation: https://github.com/coreos/coreos-ci/blob/master/README-upstream-ci.md
cosaPod(buildroot: true) {
checkout scm
// hack to satisfy golang compiler wanting to cache things
shwrap("mkdir cache")
withEnv(["XDG_CACHE_HOME=${env.WORKSPACE}/cache"]) {
// freeze kernel to 5.6.7 for now to avoid a regression in loopback
// code which interferes with blackbox testing
// https://bugs.archlinux.org/task/66526
shwrap("""
mkdir -p /srv/fcos && cd /srv/fcos
cosa init https://github.com/coreos/fedora-coreos-config
mkdir -p overrides/rpm && cd overrides/rpm
curl -L --remote-name-all https://kojipkgs.fedoraproject.org//packages/kernel/5.6.7/200.fc31/x86_64/kernel{,-core,-modules}-5.6.7-200.fc31.x86_64.rpm
""")
fcosBuild(skipInit: true, make: true, skipKola: true)
}
// we run the blackbox tests separately instead of as part of the main kola
// run since it's a distinct kind of test and we want to draw more
// attention to it in the Jenkins UI
// XXX: need a e.g. `--tag !external`
fcosKola(extraArgs: "--blacklist-test ext.*")
stage("Blackbox Tests") {
shwrap("""
./build_blackbox_tests
mkdir -p tests/kola/data
mv tests.test bin tests/kola/data
""")
fcosKola(extraArgs: "--tag external", skipUpgrade: true)
}
}