update center json generator...

322 views
Skip to first unread message

Nigel Magnay

unread,
May 4, 2011, 12:31:38 PM5/4/11
to jenkin...@googlegroups.com
There is an idea kicking (from one of the IRC meetings) around to have the ability to generate an update-center.json file from a Jenkins instance, so that it could expose the plugins that have been built there.

Is the code for generating this available somewhere, rather than me innacurately re-inventing the wheel ?


Nigel Magnay

unread,
May 26, 2011, 10:17:56 AM5/26/11
to jenkin...@googlegroups.com
Bump...

Jesse Farinacci

unread,
May 26, 2011, 3:31:22 PM5/26/11
to jenkin...@googlegroups.com
https://github.com/search?type=Everything&language=&q=jenkinsci+backend&repo=&langOverride=&x=22&y=12&start_value=1


--
There are 10 types of people in this world, those
that can read binary and those that can not.

Max Spring

unread,
Jul 8, 2011, 6:40:53 PM7/8/11
to jenkin...@googlegroups.com
Nigel,

I am able to build your update-center-repository from https://github.com/magnayn/backend-update-center2.
I installed the hpi into a 1.415 instance successfully.

How do I use it?
If you could shed some light on it, that would be great.

BTW, I had to add a dependency to com.sun:tools:1.6.0 to update-center2/pom.xml to make the build succeed.

Thanks!
-Max

Nigel Magnay

unread,
Jul 9, 2011, 2:14:43 AM7/9/11
to jenkin...@googlegroups.com
If you install the jenkins maven repository server plugin, then the update json should appear within the repository (I somewhere under http://jenkins:8080/plugins/repository/...)

I believe the JSON file is nearly there, but not quite. The master branch moved in backend-update-center2, so I have to rebase it at some point. I believe the two changes necessary are 
a) make the update center be called 'default' (I don't think jenkins recognises it otherwise
b) Include a jenkins WAR file reference - when Jenkins parses the JSON, it bombs if there's no reference to the latest war file in there.

Also I know that kiy0taka has some nifty json-merge stuff that could also go in - I just stalled on available time :-)
Reply all
Reply to author
Forward
0 new messages