ci: fix building metal image#222
ci: fix building metal image#222jlebon merged 1 commit intocoreos:masterfrom jlebon:pr/buildextend-metal
Conversation
|
Requires: coreos/coreos-ci-lib#25 |
This is actually even worse right now because Aside: this is what coreos/rpm-ostree#2059 fixes. |
|
hmm this looks more confusing too me. why not leave the |
Hmm, we could do that; though I don't follow how one is less confusing than the other. Can you expand? Note also by using |
|
I do propose to still use diff --git a/.cci.jenkinsfile b/.cci.jenkinsfile
index 7f27f5c..a0a7c1e 100644
--- a/.cci.jenkinsfile
+++ b/.cci.jenkinsfile
@@ -3,10 +3,11 @@
cosaPod(buildroot: true) {
checkout scm
- fcosBuild(make: true)
+ # just `cosa build` the ostree
+ fcosBuild(make: true, skipKola: true, extraArgs: 'ostree')
stage("Build metal+live") {
- shwrap("cd /srv/fcos && cosa build metal")
+ shwrap("cd /srv/fcos && cosa buildextend-metal")
shwrap("cd /srv/fcos && cosa buildextend-metal4k")
// Compress once
shwrap("cd /srv/fcos && cosa buildextend-live")This just makes more sense to me when I read it, but either one works so I'll let you decide. |
dustymabe
left a comment
There was a problem hiding this comment.
one suggestion but what you have works too. LGTM
|
I like Dusty's suggestion too but obviously either works. |
We were doing `cosa build metal` instead of `cosa buildextend-metal`. And since `fcosBuild` itself already builds a qemu image, we were essentially doing `create_disk.sh` twice. Fix that by using `buildextend-metal`, and just making the initial `fcosBuild` only build the OSTree since we don't need the QEMU image for our tests. And also skip the regular kola tests since those don't really test coreos-installer anyway (and they'd need the QEMU image).
|
OK, done! ⬆️ |
We were doing
cosa build metalinstead ofcosa buildextend-metal.And since
fcosBuilditself already builds a qemu image, we wereessentially doing
create_disk.shtwice.Instead, just make the initial
fcosBuildonly build the metal imagesince we don't need the QEMU image for our tests. And also skip the
regular kola tests since those don't really test coreos-installer
anyway (and they'd need the QEMU image).