Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/bin/build_rpms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
set -euo pipefail

SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Build the flannel RPM unless overridden explicitly
WITH_FLANNEL=${WITH_FLANNEL:-1}
# shellcheck source=test/bin/common.sh
source "${SCRIPTDIR}/common.sh"

Expand All @@ -15,11 +17,11 @@ build_rpms() {
rm -rf _output/rpmbuild*

# Normal build of current branch from source
local build_cmds=('make rpm')
local build_cmds=("make WITH_FLANNEL=${WITH_FLANNEL} rpm")

# In CI, build the current branch from source with the build tools using used by OCP
if [ -v CI_JOB_NAME ]; then
build_cmds=('make rpm-podman')
build_cmds=("make WITH_FLANNEL=${WITH_FLANNEL} rpm-podman")
fi

build_cmds+=(
Expand Down
2 changes: 1 addition & 1 deletion test/bin/ci_phase_iso_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ cd "${ROOTDIR}/test/"
source "${SCRIPTDIR}/common.sh"

# Re-build from source.
$(dry_run) env WITH_FLANNEL=1 bash -x ./bin/build_rpms.sh
$(dry_run) bash -x ./bin/build_rpms.sh

if ${COMPOSER_CLI_BUILDS} ; then
# Determine and create the ideal number of workers
Expand Down