Skip to content
Merged
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
7 changes: 3 additions & 4 deletions generation/check_existing_release_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ function find_existing_version_pom() {
local group_id_dir="${group_id//\.//}"
local URL="${MAVEN_SITE}/${group_id_dir}/${artifact_id}/${version}/${artifact_id}-${version}.pom"
local status_code=$(curl --silent --head -o /dev/null -w "%{http_code}" $URL)
if [ "${status_code}" == "404" ]; then
echo " The version does not exists. Good"
else
if [ "${status_code}" == "200" ]; then
echo " The version already exists at ${URL}. Please investigate."
return_code=1
else
echo " The version does not exists (status_code ${status_code} for ${URL}). Good."
fi

}

return_code=0
Expand Down
Loading