Skip to content

Commit

Permalink
Add Support for continous deployment (#101)
Browse files Browse the repository at this point in the history
Co-authored-by: Houssem Ben Ali <[email protected]>
  • Loading branch information
hbenali and hbenali committed Sep 3, 2020
1 parent f7e4d6a commit e33e080
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _functions_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,15 @@ do_download_maven_artifact() {
fi

local latestmilestonesuffix=$(echo $_artifactTimestamp | grep -oP "[0-9]+$")
local latestmilestoneprefix=$(echo $_artifactTimestamp | grep -oP "([0-9]+\.)+[0-9]+(\-(M|RC|CP))?")
local latestmilestoneprefix=$(echo $_artifactTimestamp | grep -oP "([0-9]+\.)+[0-9]+(\-(M|RC|CP|[0-9]+))?")

# Stable version detected
if [[ ! "$latestmilestoneprefix" =~ .*-(M|RC|CP)$ ]]; then
if [[ ! "$latestmilestoneprefix" =~ .*-(M|RC|CP|[0-9]+)$ ]]; then
_artifactTimestamp="$latestmilestoneprefix"
env_var MILESTONE_PREFIX ""
else
env_var MILESTONE_SUFFIX "$latestmilestonesuffix"
env_var MILESTONE_PREFIX "$(echo $latestmilestoneprefix | grep -oP '\-(M|RC|CP)')"
env_var MILESTONE_PREFIX "$(echo $latestmilestoneprefix | grep -oP '\-(M|RC|CP|[0-9]+)')"
fi

echo_info "Latest timestamp : $_artifactTimestamp"
Expand Down

0 comments on commit e33e080

Please sign in to comment.