How to fetch output of concourse job through HTTP API #6302
Unanswered
kalrashubham49
asked this question in
Help & Support
Replies: 3 comments 1 reply
-
|
Any help regarding this would be heartly appreciated.. :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
If you are looking for the logs the are output in the build then the endpoint is |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi Andy ,
Thanks for the response, I acknowledge API might not be stable as this API
is not working in Concourse 6.6.0, Just checked its implementation in
Concourse 6.6.0 Go Code, there is nothing which is returning the data.
func (s *Server) BuildEvents(build db.Build) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
streamDone := make(chan struct{})
go func() {
defer close(streamDone)
s.eventHandlerFactory(s.logger, build).ServeHTTP(w, r)
}()
select {
case <-streamDone:
}
})
}
…On Mon, Nov 23, 2020 at 10:52 PM Andy Paine ***@***.***> wrote:
If you are looking for the logs the are output in the build then the
endpoint is BuildEvents - /api/v1/builds/:build_id/events. You should be
aware that the HTTP API for Concourse is not necessarily stable and the
only *supported* clients of it are
https://github.com/concourse/concourse/tree/master/go-concourse and the
Concourse web UI.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6302 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADHXZ5EZTWTGJPC57LTLYLLSRKK55ANCNFSM4T4VJQFQ>
.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have integrated concourse HTTP API's for creating , unpausing and triggering build for the pipelines, however i am stuck how to get response of job in my pipeline.
My Operation succeeded , and i want to fetch response for my my pipeline job execution (not status) , but i am not able to find api in routes.go for that , can you please help me with this.
In the attached screenshot , i want to get the response of the job but when i am hitting the API for getting job i am getting response as :
{"id":53,"name":"test-http","pipeline_name":"apipipeline24","team_name":"main","next_build":null,"finished_build":{"id":62,"team_name":"main","name":"1.1","status":"succeeded","job_name":"test-http","api_url":"/api/v1/builds/62","pipeline_name":"apipipeline24","start_time":1605842533,"end_time":1605842534,"rerun_number":1,"rerun_of":{"id":61,"name":"1"}},"outputs":[{"name":"clair-communication","resource":"clair"}],"groups":null}
In output i am getting only name and resource.
Beta Was this translation helpful? Give feedback.
All reactions