Skip to content

Commit

Permalink
chore(publish.sh) fix jenkinsci#1567 by correcting the Jenkins latest…
Browse files Browse the repository at this point in the history
… weekly version pattern capture

Signed-off-by: Damien Duportal <[email protected]>
  • Loading branch information
dduportal committed Feb 15, 2023
1 parent 30b714a commit 08eb51f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .ci/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,11 @@ if [ "$dry_run" = true ]; then
fi

versions=$(get-latest-versions)
latest_weekly_version=$(echo "${versions}" | tail -n 1)

# The regexp '[0-9]\.[0-9]+\.[0-9]' captures only the LTS version (e.g. "3 numbers" such as 2.375.3 for instance).
# Weekly versions are all the non-LTS versions
latest_lts_version=$(echo "${versions}" | grep -E '[0-9]\.[0-9]+\.[0-9]' | tail -n 1 || echo "No LTS versions")
latest_weekly_version=$(echo "${versions}" | grep -v -E '[0-9]\.[0-9]+\.[0-9]' | tail -n 1)

for version in ${versions}
do
Expand Down

0 comments on commit 08eb51f

Please sign in to comment.