RED-10260: add quote char to component mapping
This commit is contained in:
parent
f86c925835
commit
9a99398961
@ -9,11 +9,14 @@ gradle assemble
|
|||||||
# Get the current Git branch
|
# Get the current Git branch
|
||||||
branch=$(git rev-parse --abbrev-ref HEAD)
|
branch=$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
|
||||||
|
# Replace any slashes (e.g., in 'feature/' or 'release/') with a hyphen
|
||||||
|
cleaned_branch=$(echo "$branch" | sed 's/\//_/g')
|
||||||
|
|
||||||
# Get the short commit hash (first 5 characters)
|
# Get the short commit hash (first 5 characters)
|
||||||
commit_hash=$(git rev-parse --short=5 HEAD)
|
commit_hash=$(git rev-parse --short=5 HEAD)
|
||||||
|
|
||||||
# Combine branch and commit hash
|
# Combine branch and commit hash
|
||||||
buildName="${USER}-${branch}-${commit_hash}"
|
buildName="${USER}-${cleaned_branch}-${commit_hash}"
|
||||||
|
|
||||||
gradle bootBuildImage --publishImage -PbuildbootDockerHostNetwork=true -Pversion=${buildName}
|
gradle bootBuildImage --publishImage -PbuildbootDockerHostNetwork=true -Pversion=${buildName}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user