How can I detect the task where a job failed in Concourse given the build number?

731 views Asked by At

Concourse Fly CLI had the build command which only lists the status and ID from the last N builds.

Is there a way to get the task that made the job fail for a particular build? And maybe also the output for failure details?

Or do you know another trick or workaround how to extract this from a job?

(I would avoid having to scrape fly hijack command output or the Concourse UI build HTML page).

Maybe a solution with a job "side car" resource that somehow gathers logs?

(I am using job hooks and I would also try to avoid spamming the job plans with task on_success hooks. But would such task hooks have access to the current succeeded task? This could enable one to generate a log of tasks using a put step inside the task hook.)

0

There are 0 answers