Re: Get build status info along with url , and build number from JSON API

37 views
Skip to first unread message

Vincent Latombe

unread,
Oct 12, 2015, 9:09:39 AM10/12/15
to Jenkins Users, bhupendra...@3dplmsoftware.com
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 <bhupen...@gmail.com>:
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_cmdd/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 jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/9defba57-0daf-4442-acad-4e1567c97a6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages