class Gitlab::QA::Support::GitlabUpgradePath

def fetch

Returns:
  • (Array) -
def fetch
  return [release(latest_patch(previous_version))] unless major_upgrade?
  # get versions between previous major and current version in gitlab upgrade path
  path = full_upgrade_path.each_with_object([]) do |ver, arr|
    next if ver <= previous_version || ver >= current_version
    arr << ver
  end
  [previous_version, *path].map do |ver|
    release(version_info.latest_patch(ver))
  end
end