Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/jenkins_api_client/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ def get_hudson_version
# v 1.2 is a lot older than v 1.102 - and simple < > on version
# strings doesn't work so well
def deconstruct_version_string(version)
version = version.split('.')[0..2].join('.') if version.present?
match = version.match(/^(\d+)\.(\d+)(?:\.(\d+))?$/)

# Match should have 4 parts [0] = input string, [1] = major
Expand Down