Jenkins Rest API guide

74 views
Skip to first unread message

Gustavo Henrique

unread,
Nov 2, 2016, 3:44:31 PM11/2/16
to Jenkins Users
Hi guys!

Where can I find a complete reference to the rest api?
Maybe examples about how to get the build date.

Thanks!

Rachel Moreno

unread,
Nov 2, 2016, 6:09:22 PM11/2/16
to Jenkins Users
Hi Gustavo,

Take a look at this page: https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API

I hope be useful.

Best regards,
Rachel

Lee Meador

unread,
Nov 15, 2016, 3:03:36 PM11/15/16
to jenkins...@googlegroups.com
I hope Gustavo finds that more helpful than I did. Its pretty obscure how to do any particular thing but the notes covering how to access the api are pretty thorough.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6f64192d-b7e7-4c5c-94db-726176a32a6b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com

Daniel Beck

unread,
Nov 15, 2016, 3:42:27 PM11/15/16
to jenkins...@googlegroups.com
Well, why should the wiki repeat what Jenkins tells you already? It explains how to get information about a build:

> Or if you want to access information about a particular build, e.g. …, then go to …/api/ and you'll see the list of functionalities for that build.

On that page in Jenkins, there's this:

> Other Useful URLs
>
> …
> Build timestamp
> This URL returns the build timestamp. You can also use the format query parameter to control the date format, which follows the SimpleDateFormat format pattern. … You can also use the Accept-Language HTTP header to control the locale in which the date is formatted.

Repeating the same thing will just result in the information becoming stale over time when something changes.

> On 15.11.2016, at 21:03, Lee Meador <l...@leemeador.com> wrote:
>
> I hope Gustavo finds that more helpful than I did. Its pretty obscure how to do any particular thing but the notes covering how to access the api are pretty thorough.
>
> On Wed, Nov 2, 2016 at 5:09 PM, Rachel Moreno <raquel.mor...@gmail.com> wrote:
> Hi Gustavo,
>
> Take a look at this page: https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API
>
> I hope be useful.
>
> Best regards,
> Rachel
>
> El miércoles, 2 de noviembre de 2016, 20:44:31 (UTC+1), Gustavo Henrique escribió:
> Hi guys!
>
> Where can I find a complete reference to the rest api?
> Maybe examples about how to get the build date.
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6f64192d-b7e7-4c5c-94db-726176a32a6b%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> -- Lee Meador
> Sent from gmail. My real email address is lee AT leemeador.com
>
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAA4vtDSRYVq4KZOrZG42f6uO6pB9UP51JZsaSxPufayujtgQDQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages