You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show exit code on task UI (particularly if non-zero) #2673
I like the concourse approach to feature requests, very well done!
What challenge are you facing?
I had a task repeatedly fail on a busy concourse cluster. The task was a bash script running in a linux container. There were no visible indications, or errors output, of what went wrong. It took some digging through the noisy logs to find the exit code to help me troubleshoot the problem. I also tried hijacking the container and adding debug output to help find the problem. But the key to understanding the problem was the exit code which was buried in the logs.
What would make this better?
It would have been helpful if the UI showed the non-zero exit code, 141 in this case. I don't think I'd care whether or not success exit codes, 0, were shown.
Are you interested in implementing this yourself?
Not at the moment. This is a "if you happen to be updating the UI and think this would be a good idea" request. If you don't think this request is worthwhile, or if it doesn't make sense for all tasks to show an error exit code (eg I don't know what happens on Windows), then feel free to close this.
Reacted by OvermindDL1, Marco Molteni, Rui Yang, Alexandre Couedelo and spiffytortoise
I'd be happy to see it at the bottom of the (expanded) output for a task. That is, something like:
>_ build
12:27:12 + set +x
12:27:12 Git version is fca8c502
12:27:12 sh: cd: line 10: can't cd to code/terraform: No such file or directory
Task exit code 1
Not directly related, but it'd also be great to be able to set concourse status by exit code (so you could say "failed" (red) or "aborted" (brown) or other states not yet available like "won't do" or whatever else.
changed the title [-]Wishlist: Show exit code on task UI (particularly if non-zero)[/-][+]Show exit code on task UI (particularly if non-zero)[/+]on Jan 6, 2025
Activity
Lindsayauchin commentedon Oct 26, 2018
A possible solution to add the error next to the x on the task that is collapsed.

coofercat commentedon Jun 18, 2019
I'd be happy to see it at the bottom of the (expanded) output for a task. That is, something like:
Not directly related, but it'd also be great to be able to set concourse status by exit code (so you could say "failed" (red) or "aborted" (brown) or other states not yet available like "won't do" or whatever else.
[-]Wishlist: Show exit code on task UI (particularly if non-zero)[/-][+]Show exit code on task UI (particularly if non-zero)[/+]chuxubank commentedon Aug 22, 2025
Really need it!
feat(ui): display non-zero tasks exit codes in pipeline UI (concourse…
test(ui): add exitStatus field to step test helper (concourse#2673)