Skip to content
Closed
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/*.repo
/content_sets.yaml
/manifest.yaml
/extensions.yaml
28 changes: 14 additions & 14 deletions ci/prow-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,13 @@ cosa_init() {
echo "Using $cosa_dir for build"
cd "$cosa_dir"

# Setup source tree
cosa init --transient "${tmp_src}/os"
# Select RHEL os CentOS Stream version
# This must be defined for each test job entry point
if [[ -z ${RHELVER+x} ]]; then
# Require the CI jobs to explicitly setup the variant to avoid mistakes
if [[ -z ${OSVER+x} ]]; then
echo "No RHEL or CentOS Stream version selected to build RHCOS/SCOS"
exit 1
fi
pushd src/config
./select_version.sh "${RHELVER}"
popd
# Setup source tree, selecting a variant
cosa init --transient "${tmp_src}/os" "${OSVER}"
}

# Do a cosa build & cosa build-extensions only.
Expand All @@ -67,14 +63,18 @@ cosa_build() {
# to X-Y format
ocpver=$(rpm-ostree compose tree --print-only src/config/manifest.yaml | jq -r '.["mutate-os-release"]')
ocpver_mut=$(rpm-ostree compose tree --print-only src/config/manifest.yaml | jq -r '.["mutate-os-release"]' | sed 's|\.|-|')
prev_build_url=${REDIRECTOR_URL}/rhcos-${ocpver}/
# Fetch the previous build
cosa buildfetch --url="${prev_build_url}"

# Temporary workaround until we publish builds for other versions
if [[ "${OSVER}" == "rhel-8.6" ]]; then
prev_build_url=${REDIRECTOR_URL}/rhcos-${ocpver}/
# Fetch the previous build
cosa buildfetch --url="${prev_build_url}"
fi

# Fetch the repos corresponding to the release we are building
# Temporarily double checked until we have uniformity for all RHEL and
# CentOS versions
if [[ "${RHELVER}" == "rhel-8.6" ]]; then
if [[ "${OSVER}" == "rhel-8.6" ]]; then
rhelver=$(rpm-ostree compose tree --print-only src/config/manifest.yaml | jq -r '.["automatic-version-prefix"]' | cut -f2 -d.)
curl -L "http://base-${ocpver_mut}-rhel${rhelver}.ocp.svc.cluster.local" -o "src/config/ocp.repo"
fi
Expand Down Expand Up @@ -171,14 +171,14 @@ main () {
cosa_build
;;
"rhcos-cosa-prow-pr-ci" | "rhcos-86-build-test-qemu")
RHELVER="rhel-8.6"
OSVER="rhel-8.6"
setup_user
cosa_init
cosa_build
kola_test_qemu
;;
"rhcos-86-build-test-metal")
RHELVER="rhel-8.6"
OSVER="rhel-8.6"
setup_user
cosa_init
cosa_build
Expand Down
1 change: 0 additions & 1 deletion extensions.yaml

This file was deleted.

1 change: 0 additions & 1 deletion manifest.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions select_version.sh

This file was deleted.

1 change: 1 addition & 0 deletions variant_default
1 change: 1 addition & 0 deletions variant_rhcos
1 change: 1 addition & 0 deletions variant_rhel-8.6
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rhel-8.6