Hi James,

try jenkins.model.Jenkins.getVersion(). This will return you a VersionNumber object that you can use for comparing different version numbers, etc. Its toString() method will return something like "1.491".

Cheers,
Simon.
--
James Yin (28.11.2012 03:52):
Is there a way that plugin can find out Jenkins version at run time?

There are different versions of Jenkins in my company.
I need email a log with the Jenkins version when the plugin run failed.

Reply via email to