ci: Drop unnecessary outer stage
authorJonathan Lebon <jonathan@jlebon.com>
Thu, 13 Oct 2022 13:16:19 +0000 (09:16 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Thu, 13 Oct 2022 13:16:19 +0000 (09:16 -0400)
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.

.cci.jenkinsfile

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