Hi Bhupendra,

I've copied the Jenkins Users mailing list, the Dev mailing list isn't
suited for your question.

Try adding ?depth=1 to your url, you'll retrieve more infos about builds.
Make sure you read the API help page available at *http://<jenkins
server>:8080/jenkins/view/<job name>/job/validation_xxxx_cmd/api/.*

Vincent

2015-10-12 14:42 GMT+02:00 bhupendra negi <[email protected]>:

> Hello ,
>
> I am building an front-end application for my jenkins server. The
>  objective is to show build history of the job along with status {
> success,failed ,aborted etc:).
>
> I tried this JSON REST API : *  http://<jenkins
> server>:8080/jenkins/view/<job name>/job/validation_xxxx_cmd/api/json   , 
> *this
> api gives me this info
>
> "buildable" : true,
>   "builds" : [
>     {
>       "number" : 32,
>       "url" : "http://*<jenkins server>*>/jenkins/view/*<job 
> name>*/job/*validation_xxxx_cmd*d/32/"
>     },
>     {
>       "number" : 31,
>       "url" : "http://*<jenkins server>*/jenkins/view/*<job 
> name>*/job/*validation_xxxx_cmd*/31/"
>     },
>
> ]
>
>
> along with other info , I also require status of each build along with number 
> and url , how can I achieve this.  Although i can get Individual build result 
> if I go to  http://*<jenkins server>*/jenkins/view/*<job 
> name>*/job/*validation_xxxx_cmd*/31/api/json . i get result as Success or 
> failure etc.
>
> But I need at once all build url , number , status , so that I can use this 
> info to show in my front end.
>
>
> Thanks ,
>
> Bhupendra
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/9defba57-0daf-4442-acad-4e1567c97a6d%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/9defba57-0daf-4442-acad-4e1567c97a6d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAH-zGCjquya8psNEfS5Dio5n53nHdZ1EFck%2Bdd2UAw9xF1CZBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to