Skip to content

Commit 8a92f45

Browse files
jbtrystramcoiby
authored andcommitted
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 200107e commit 8a92f45

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.cci.jenkinsfile

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
// make it easy for anyone to download the RPMs
24+
archiveArtifacts 'kdump-coreos-ci.rpm'
25+
stash includes: 'kdump-coreos-ci.rpm', name: 'kdump-rpm'
26+
}
27+
28+
// Build FCOS with the kdump rpm
29+
cosaPod {
30+
31+
stage("Build FCOS") {
32+
unstash 'kdump-rpm'
33+
shwrap("""
34+
coreos-assembler init --force https://github.com/coreos/fedora-coreos-config
35+
mv kdump-coreos-ci.rpm overrides/rpm
36+
cosa fetch --with-cosa-overrides
37+
cosa build
38+
""")
39+
}
40+
41+
// the kdump kola tests
42+
stage("Kola kdump tests") {
43+
kola(cosaDir: "${env.WORKSPACE}", extraArgs: '\\*kdump\\*', skipUpgrade: true, skipBasicScenarios: true)
44+
}
45+
}

0 commit comments

Comments
 (0)