Skip to content

Commit 218d796

Browse files
Merge pull request #52 from jcapiitao/fix_prepare_repos
NO-JIRA: prow-entrypoint: always prepare repos in cosa_init
2 parents a0131ea + 7d829ae commit 218d796

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ci/prow-entrypoint.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,20 @@ setup_user() {
3333
# Setup a new build directory with COSA init, selecting the version of RHEL or
3434
# CentOS Stream that we want as a basis for RHCOS/SCOS.
3535
cosa_init() {
36-
if test -d builds; then
37-
echo "Already in an initialized cosa dir"
38-
return
39-
fi
40-
4136
if [[ ${#} -ne 1 ]]; then
4237
echo "This should have been called with a single 'variant' argument"
4338
exit 1
4439
fi
4540
local -r variant="${1}"
4641
echo "Using variant: ${variant}"
4742

43+
if test -d builds; then
44+
echo "Already in an initialized cosa dir"
45+
# Pull repos from an in-cluster service of the Openshift CI
46+
prepare_repos "${variant}"
47+
return
48+
fi
49+
4850
# Always create a writable copy of the source repo
4951
tmp_src="$(mktemp -d)"
5052
cp -a /src "${tmp_src}/os"

0 commit comments

Comments
 (0)