koolking12 / hudson-eclipse

Automatically exported from code.google.com/p/hudson-eclipse
0 stars 0 forks source link

[proposial] Add colum - date of last build #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Could you add column in window with date of last build. Number is not
enough when I have over 20 projects to track.

Original issue reported on code.google.com by bjkuczyn...@gmail.com on 3 Aug 2009 at 12:24

GoogleCodeExporter commented 8 years ago
Getting this information from server involves a little bit more communicatino 
overhead. The solutions are:
1. when performing a refresh, request more data from the server using url
<base>/hudson/job/<project>/api/xml?depth=1 
DOWNSIDE: the returned XML is much larger than the one retrieved now, which has 
depth 
= 0.

2. for each job, issue a separate request for
<base>/hudson/job/<project>/<build_number>/api/xml?xpath=*/timestamp
DOWNSIDE: you have to initiate an extra request for each project.

If the owners decide to add this feature, I would be glad to help.

Original comment by dan.corneanu@gmail.com on 28 Aug 2009 at 8:12

GoogleCodeExporter commented 8 years ago
Hi,

i created patch for this enhancement request. New "Date and Time" column (from 
last
build) is available. I introduced new class for build representation and 
changed some
parts of Job class. Build class now provides more information about build 
(number,
id, url, timestamp etc.), so we can show additional infromation (column) in 
table if
needed. I changed the sorting functions too: now you can sort with build 
number, date
& time etc.

I introduced some functions to read build information for getting last build
parameters in previous patch for another issue:
http://code.google.com/p/hudson-eclipse/issues/detail?id=36#c4

The attached patch is based on it, because it is build related and i cannot 
checkin
previous changes. If you apply it issue 36 can be closed too.

Tested with Hudson v1.316 and v1.323.

Please verify the patch.

It would be good to create new official plugin version.

Andre

P.S.: @dan.corneanu: thank you for information, but "depth=1" is not needed, 
because
the build info shows timestamp with depth=0 too. It would be good if you can 
test the
patch too :)

Original comment by andre.bo...@gmail.com on 29 Sep 2009 at 7:17

Attachments:

GoogleCodeExporter commented 8 years ago
Patch applied, thanks.

Original comment by jre...@gmail.com on 1 Oct 2009 at 9:33