Skip to content

Commit d93ffbc

Browse files
committed
CI: build coreOS with kdump RPM and run tests
This will uses coreOS jenkins instance to run tests on PRs for this repo.
1 parent e9c84d7 commit d93ffbc

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.cci.jenkinsfile

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Documentation: https://github.com/coreos/coreos-ci/blob/main/README-upstream-ci.md
2+
3+
properties([
4+
// abort previous runs when a PR is updated to save resources
5+
disableConcurrentBuilds(abortPrevious: true)
6+
])
7+
8+
9+
buildPod(runAsUser: 0, memory: "2Gi", cpu: "2") {
10+
checkout scm
11+
stage("Install packit") {
12+
shwrap("""
13+
dnf install packit -y
14+
""")
15+
}
16+
stage("Build kdump RPM") {
17+
// note: coreos upstream CI only run on x86 so we hardcode the architecture
18+
shwrap("""
19+
packit build locally --release-suffix coreos.tests
20+
mv x86_64/kdump-utils*coreos.tests*.rpm ./kdump-coreos-ci.rpm
21+
""")
22+
}
23+
stash includes: 'kdump-coreos-ci.rpm', name: 'kdump-rpm'
24+
}
25+
26+
// Build FCOS with the kdump rpm
27+
cosaPod(runAsUser: 0, memory: "4Gi", cpu: "4") {
28+
29+
stage("Build FCOS") {
30+
unstash 'kdump-rpm'
31+
shwrap("""
32+
coreos-assembler init --force https://github.com/coreos/fedora-coreos-config
33+
mv kdump-coreos-ci.rpm overrides/rpm
34+
cosa fetch --with-cosa-overrides
35+
cosa build
36+
""")
37+
}
38+
39+
// the kdump kola tests
40+
stage("Kola kdump tests") {
41+
kola(cosaDir: "${env.WORKSPACE}", extraArgs: '\\*kdump\\*', skipUpgrade: true, skipBasicScenarios: true)
42+
}
43+
}

0 commit comments

Comments
 (0)