Skip to content

Commit 5e9cfef

Browse files
HyukjinKwonksbeyer
authored andcommitted
[SPARK-52707][BUILD] Remove preview postfix when looking up the JIRA versions
### What changes were proposed in this pull request? This PR proposes to remove preview postfix when looking up the JIRA versions ### Why are the changes needed? Otherwise, preview builds fail. ### Does this PR introduce _any_ user-facing change? No, dev-only. ### How was this patch tested? Manually ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#51399 from HyukjinKwon/SPARK-52707. Authored-by: Hyukjin Kwon <gurwls223@apache.org> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
1 parent a2dce2d commit 5e9cfef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dev/create-release/release-build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,11 +995,12 @@ if [[ "$1" == "publish-release" ]]; then
995995
DEADLINE=$(TZ=America/Los_Angeles date -d "+4 days" "+%a, %d %b %Y %H:%M:%S %Z")
996996

997997
JIRA_API_URL="https://issues.apache.org/jira/rest/api/2/project/SPARK/versions"
998+
SPARK_VERSION_BASE=$(echo "$SPARK_VERSION" | sed 's/-preview[0-9]*//')
998999
JIRA_VERSION_ID=$(curl -s "$JIRA_API_URL" | \
9991000
# Split JSON objects by replacing '},{' with a newline-separated pattern
10001001
tr '}' '\n' | \
10011002
# Find the block containing the exact version name
1002-
grep -F "\"name\":\"$SPARK_VERSION\"" -A 5 | \
1003+
grep -F "\"name\":\"$SPARK_VERSION_BASE\"" -A 5 | \
10031004
# Extract the line with "id"
10041005
grep '"id"' | \
10051006
# Extract the numeric id value (assuming "id":"123456")

0 commit comments

Comments
 (0)