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
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,6 @@ function ci_get_clonerefs() {
function ci_clone_src() {
local force_clone="${1:-false}"
# Clusterbot variables override force_clone - they require explicit branch selection
if [ -n "${MICROSHIFT_PR:-}" ] || [ -n "${MICROSHIFT_GIT:-}" ] || [ -n "${MICROSHIFT_NIGHTLY:-}" ]; then
force_clone="true"
fi
fails=0
for _ in $(seq 3) ; do
if ci_get_clonerefs; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ if [ -f "${MICROSHIFT_CLUSTERBOT_SETTINGS}" ]; then
: Overriding step defaults by sourcing clusterbot settings
# shellcheck disable=SC1090
source "${MICROSHIFT_CLUSTERBOT_SETTINGS}"
# Always assemble CLONEREFS for cloning when using clusterbot.
# The only sitation it would have JOB_SPEC with clonerefs is for rehearsal which is not the main usecase.
# When running via cluster bot, it's always empty and the decision "what to clone" is made based on the sourced
# `microshift-clusterbot-settings` file (envs like MICROSHIFT_PR, MICROSHIFT_GIT, MICROSHIFT_NIGHTLY, *AND* OCP_VERSION).
SRC_FROM_GIT=true
fi

# All graviton instances have a lower case g in the family part. Using
Expand Down