-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: build coreOS with kdump RPM and run tests
This will uses coreOS jenkins instance to run tests on PRs for this repo.
- Loading branch information
1 parent
e9c84d7
commit f2ccdd5
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// 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(runAsUser: 0, memory: "2Gi", cpu: "2") { | ||
checkout scm | ||
stage("Install packit") { | ||
shwrap(""" | ||
dnf install packit -y | ||
""") | ||
} | ||
stage("Build kdump RPM") { | ||
// note: coreos upstream CI only run on x86 so we hardcode the architecture | ||
shwrap(""" | ||
packit build locally --release-suffix coreos.tests | ||
mv x86_64/kdump-utils*coreos.tests*.rpm ./kdump-coreos-ci.rpm | ||
""") | ||
} | ||
stash includes: 'kdump-coreos-ci.rpm', name: 'kdump-rpm' | ||
} | ||
|
||
// Build FCOS with the kdump rpm | ||
cosaPod(runAsUser: 0, memory: "4Gi", cpu: "4") { | ||
|
||
stage("Build FCOS") { | ||
unstash 'kdump-rpm' | ||
shwrap(""" | ||
coreos-assembler init --force https://github.com/coreos/fedora-coreos-config | ||
mv kdump-coreos-ci.rpm overrides/rpm | ||
cosa fetch --with-cosa-overrides | ||
cosa build | ||
""") | ||
} | ||
|
||
// the kdump kola tests | ||
stage("Kola kdump tests") { | ||
kola(cosaDir: "${env.WORKSPACE}", extraArgs: '\\*kdump\\*', skipUpgrade: true, skipBasicScenarios: true) | ||
} | ||
} |