Way to determine plugin version number from hpi/jpi file?

461 views
Skip to first unread message

Ryan Fox

unread,
Oct 16, 2015, 10:44:01 AM10/16/15
to Jenkins Users
Does anyone know if there is a way to determine the version number of a plugin from just the hpi/jpi file?  I have multiple copies of a plugin, but noway to tell the specific version without having to first load them into Jenkins.

Victor Martinez

unread,
Oct 16, 2015, 10:57:37 AM10/16/15
to Jenkins Users
Afaik, those files are a kind of jar files, you can unzip them, and open the manifest.MF file which contains that version information and their dependencies, which is allocated in the meta-inf folder.

look at the puppet jenkins module since it uses that implementation to check whether the version is new one.

https://github.com/jenkinsci/puppet-jenkins

I hope it helps

Ryan Fox

unread,
Oct 16, 2015, 11:50:30 AM10/16/15
to Jenkins Users
That worked.  Thanks for the tip!
Reply all
Reply to author
Forward
0 new messages