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
14 changes: 14 additions & 0 deletions .github/maven-publish-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

set -e

# Flag to disable commit mapping functionality
# Set to "true" to disable commit mapping operations
DISABLE_COMMIT_MAPPING="${DISABLE_COMMIT_MAPPING:-true}"

# Function to execute curl commands with retry and error handling
execute_curl_with_retry() {
local url="$1"
Expand Down Expand Up @@ -111,6 +115,11 @@ update_version_metadata() {
local commit_id="$3"
local snapshot_repo_url="${4:-$SNAPSHOT_REPO_URL}"

if [ "$DISABLE_COMMIT_MAPPING" = "true" ]; then
echo "Skipping version metadata update (commit mapping disabled)"
return 0
fi

echo "Updating version metadata for ${artifact_id} version ${version} with commit ID ${commit_id}"

TEMP_DIR=$(mktemp -d)
Expand Down Expand Up @@ -204,6 +213,11 @@ update_commit_mapping() {
local commit_map_filename="${5:-$COMMIT_MAP_FILENAME}"
local snapshot_repo_url="${6:-$SNAPSHOT_REPO_URL}"

if [ "$DISABLE_COMMIT_MAPPING" = "true" ]; then
echo "Skipping commit-version mapping update (commit mapping disabled)"
return 0
fi

echo "Updating commit-version mapping for ${artifact_id}"

# Create temp directory for work
Expand Down
Loading