ci: Add the built RPMs as cosa overrides

So that the built FCOS has them. This is a prereq for actually testing
what we built in `vmcheck`.
This commit is contained in:
Jonathan Lebon 2019-12-13 12:16:40 -05:00 committed by OpenShift Merge Robot
parent 07dfb8dc3e
commit 9d73458f0c

View File

@ -60,12 +60,17 @@ stage("Build FCOS") {
sh """
set -euo pipefail
rpms=\$(find packaging/ ! -name '*.src.rpm' -name '*.rpm')
# install our built rpm-ostree
find packaging/ ! -name '*.src.rpm' -name '*.rpm' | xargs dnf install -y
dnf install -y \${rpms}
# and build FCOS with our built rpm-ostree inside of it
coreos-assembler init --force https://github.com/coreos/fedora-coreos-config
mkdir -p overrides/rpm
mv \${rpms} overrides/rpm
rm -rf packaging
# and build FCOS
coreos-assembler init --force https://github.com/coreos/fedora-coreos-config
coreos-assembler build
"""
stash includes: 'builds/latest/*/*.qcow2', name: 'fcos'