Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9853 from zregvart/pr/retry-releast-10-times-1.13.x
Browse files Browse the repository at this point in the history
  • Loading branch information
zregvart authored Dec 21, 2021
2 parents a17cd90 + 2f14871 commit 3a4b315
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tools/bin/commands/release
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ release::run() {
push_container_images "$release_version" latest
fi

# Release staging repo
release_staging_repo "$topdir" "$maven_opts"

# Prepare binaries for release
prepare_binaries "${topdir}/install/operator/dist" "${topdir}/install/operator/releases"

Expand All @@ -165,6 +162,16 @@ release::run() {
# if check_for_command gren; then
# gren release --data-source=commits --tags=$release_version --override
# fi

# Release staging repo
set +e
local tries=1
while ! release_staging_repo "$topdir" "$maven_opts"; do
if (( ((tries++)) == 10)); then
echo "ERROR: Exausted 10 tries of trying to release the staging repository"
exit 1
fi
done
}

create_moving_tag_release() {
Expand Down

0 comments on commit 3a4b315

Please sign in to comment.