ci: test FCOS PXE and ISO install
authorBenjamin Gilbert <bgilbert@redhat.com>
Fri, 31 Jul 2020 10:57:58 +0000 (06:57 -0400)
committerBenjamin Gilbert <bgilbert@redhat.com>
Fri, 31 Jul 2020 10:58:04 +0000 (06:58 -0400)
Make sure we don't break the FCOS live image.  PXE is probably sufficient,
but also test the ISO image for good measure.

.cci.jenkinsfile

index 2a4c7288cdc74c1f89934a054011cad5cd03c0e9..1670ede295001ff7dbf34aa2146aa1193f0b9467 100644 (file)
@@ -77,11 +77,25 @@ parallel fcos: {
         rmdir insttree
         coreos-assembler fetch
         coreos-assembler build
+        coreos-assembler buildextend-metal
+        coreos-assembler buildextend-metal4k
+        coreos-assembler buildextend-live
         # Install the tests
         make -C tests/kolainst install
       """)
     }
-    fcosKola(cosaDir: "${env.WORKSPACE}")
+    stage("Test") {
+      parallel metal: {
+        try {
+          shwrap("cd /srv/fcos && kola testiso -S --scenarios pxe-install,iso-offline-install --output-dir tmp/kola-testiso-metal")
+        } finally {
+          shwrap("cd /srv/fcos && tar -cf - tmp/kola-testiso-metal/ | xz -c9 > ${env.WORKSPACE}/kola-testiso-metal.tar.xz")
+          archiveArtifacts allowEmptyArchive: true, artifacts: 'kola-testiso*.tar.xz'
+        }
+      }, kola: {
+        fcosKola(cosaDir: "${env.WORKSPACE}")
+      }
+    }
   }
 },
 buildopts: {