ci: Drop unnecessary outer stage

We define stages inside of this stage, so get rid of the outer `FCOS`
stage. This should help rendering the pipeline in BlueOcean more
clearly.
This commit is contained in:
Jonathan Lebon 2022-10-13 09:16:19 -04:00
parent d5129e3766
commit 139759dd7e
1 changed files with 21 additions and 23 deletions

View File

@ -42,29 +42,27 @@ stage("Build") {
// Build FCOS and run kola tests. // Build FCOS and run kola tests.
// Both fcosKola and fcosKolaTestIso require 4G max. Add 512M for overhead. // Both fcosKola and fcosKolaTestIso require 4G max. Add 512M for overhead.
stage("FCOS") { cosaPod(runAsUser: 0, memory: "4608Mi", cpu: "4") {
cosaPod(runAsUser: 0, memory: "4608Mi", cpu: "4") { stage("Build FCOS") {
stage("Build FCOS") { checkout scm
checkout scm unstash 'build'
unstash 'build' shwrap("""
shwrap(""" # Move the bits into the cosa pod
# Move the bits into the cosa pod rsync -rlv installed/rootfs/ /
rsync -rlv installed/rootfs/ / rsync -rlv installed/tests/ /
rsync -rlv installed/tests/ / coreos-assembler init --force https://github.com/coreos/fedora-coreos-config
coreos-assembler init --force https://github.com/coreos/fedora-coreos-config mkdir -p overrides/rootfs
mkdir -p overrides/rootfs # And override the on-host bits
# And override the on-host bits mv installed/rootfs/* overrides/rootfs/
mv installed/rootfs/* overrides/rootfs/ rm installed -rf
rm installed -rf coreos-assembler fetch
coreos-assembler fetch coreos-assembler build
coreos-assembler build coreos-assembler buildextend-metal
coreos-assembler buildextend-metal coreos-assembler buildextend-metal4k
coreos-assembler buildextend-metal4k coreos-assembler buildextend-live --fast
coreos-assembler buildextend-live --fast
""") """)
}
fcosKola(cosaDir: "${env.WORKSPACE}")
fcosKolaTestIso(cosaDir: "${env.WORKSPACE}", skipMetal4k: true, skipMultipath: true)
} }
fcosKola(cosaDir: "${env.WORKSPACE}")
fcosKolaTestIso(cosaDir: "${env.WORKSPACE}", skipMetal4k: true, skipMultipath: true)
} }