updated check_jenkins_version.py
afed88f2
Hari Sekhon
committed
1 changed file
check_jenkins_version.py
/check_jenkins_version.py-2+2
/check_jenkins_version.py
Add comment 52 sys.exit(4)
Add comment 53
Add comment 54 __author__ = 'Hari Sekhon'
Add comment 55 Minus  __version__ = '0.1'
Add comment 55 Plus  __version__ = '0.1.1'
Add comment 56
Add comment 57
Add comment 58 # pylint: disable=too-few-public-methods
Add comment 90 if not version:
Add comment 91 raise UnknownError('failed to retrieve version')
Add comment 92 log.debug('extracting version for Jenkins version string: %s', version)
Add comment 93 Minus   _ = re.match(r'Jenkins ver\. ({0})'.format(version_regex), version)
Add comment 93 Plus   _ = re.match(r'Jenkins ver\. ({0})'.format(version_regex), str(version))
Add comment 94 if not _:
Add comment 95 raise UnknownError('failed to parse version string, format may have changed. {0}'.format(support_msg()))
Add comment 96 version = _.group(1)