How can I get the time of a build through the REST API?

Basically, I would like to use the Time field we can see on a build.

The elapsed time would be nice too.

How can I get that?

4 comments
Comment actions Permalink

Hi Henri,

You can get the build start/finish time using the following requests:

http://localhost:8111/httpAuth/app/rest/builds/id:<build_id>/startDate
http://localhost:8111/httpAuth/app/rest/builds/id:<build_id>/finishDate
0
Comment actions Permalink

Great! Thanks.

Is there a list of all the existing fields somewhere?

0
Comment actions Permalink

No, we do not have full list. You can explore REST API, it is simple enough. Please see General Usage Principles.

0
Comment actions Permalink

The /test trick is indeed really useful

0

Please sign in to leave a comment.