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
When a task acquires an env and uses on_failure to release the env, it doesn't fire on abort.
This makes it difficult to manage env resources that are passed between a series of jobs.
Could we add an on_abort hook or allow on_failure to also fire on aborting a job?
The former seems like the right thing to do.
Another idea would be to have a pipeline level ensure.
Regards,
Ergin & Sameer
Reacted by Jean Barkhuysen, Lena Fuhrimann, Fabio Berchtold, Timothy R. Chavez and Jeff Zellner
This would definitely be useful for us too. We have on_failure cleanups which aren't being automatically run whenever a user manually aborts a task. If the user forgets to run the cleanups manually then this causes us issues the next time the job runs. Ideally the user wouldn't have to remember to trigger the cleanups manually since the act of aborting the job in concourse would run them automatically.
failed to fetch plan: BadPayload "I ran into the following problems at _.plan:\n\nExpecting an object with a field named `task` but instead got: {\"id\":\"5a1c6b2e\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2c\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2a\",\"task\":{\"name\":\"run\",\"privileged\":false}},\"on_abort\":{\"id\":\"5a1c6b2b\",\"task\":{\"name\":\"say-bye\",\"privileged\":false}}}},\"on_abort\":{\"id\":\"5a1c6b2d\",\"task\":{\"name\":\"say-bye\",\"privileged\":false}}}}\nExpecting an object with a field named `get` but instead got: {\"id\":\"5a1c6b2e\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2c\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2a\",\"task\":{\"name\":\"run\",\"privileged\":false}},\"on_abort\":{\"id\":\"5a1c6b2b\",\"task\":{\"name\":\"say-bye\",\"privileged\":false}}}},\"on_abort\":{\"id\":\"5a1c6b2d\",\"task\":{\"name\":\"say-bye\",\"privileged\":false}}}}\nExpecting an object with a field named `put` but instead got: {\"id\":\"5a1c6b2e\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2c\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2a\",\"task\":{\"name\":\"run\",\"privileged\":false}},\"on_abort\":{\"id\":\"5a1c6b2b\",\"task\":{\"name\":\"say-bye\",\"privileged\":false}}}},\"on_abort\":{\"id\":\"5a1c6b2d\",\"task\":{\"name\":\"say-bye\",\"privileged\":false}}}}\nExpecting an object with a field named `dependent_get` but instead got: {\"id\":\"5a1c6b2e\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2c\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2a\",\"task\":{\"name\":\"run\",\"privileged\":false}},\"on_abort\":{\"id\":\"5a1c6b2b\",\"task\":{\"name\":\"say-bye\",\"privileged\":false}}}},\"on_abort\":{\"id\":\"5a1c6b2d\",\"task\":{\"name\":\"say-bye\",\
Activity
concourse-bot commentedon Aug 10, 2015
Hi there!
We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.
The current status is as follows:
This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.
spikymonkey commentedon Mar 14, 2016
Hi Concourse,
This would definitely be useful for us too. We have on_failure cleanups which aren't being automatically run whenever a user manually aborts a task. If the user forgets to run the cleanups manually then this causes us issues the next time the job runs. Ideally the user wouldn't have to remember to trigger the cleanups manually since the act of aborting the job in concourse would run them automatically.
Cheers,
Gareth
JamesClonk commentedon Jan 23, 2017
Yes, this would be immensely useful for some of our pipelines. (dealing with github PRs / gitlab merge-requests)
timrchavez commentedon Oct 20, 2017
This is finally happening folks :)
Add on_abort hook test
Add "on_abort" hook
bump atc testflight
vito commentedon Nov 27, 2017
@mhuangpivotal @timrchavez Looks like the UI hasn't been updated for this.
With the following job...:
... I get a console error when viewing the build:
failed to fetch plan: BadPayload "I ran into the following problems at _.plan:\n\nExpecting an object with a field named `task` but instead got: {\"id\":\"5a1c6b2e\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2c\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2a\",\"task\":{\"name\":\"run\",\"privileged\":false}},\"on_abort\":{\"id\":\"5a1c6b2b\",\"task\":{\"name\":\"say-bye\",\"privileged\":false}}}},\"on_abort\":{\"id\":\"5a1c6b2d\",\"task\":{\"name\":\"say-bye\",\"privileged\":false}}}}\nExpecting an object with a field named `get` but instead got: {\"id\":\"5a1c6b2e\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2c\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2a\",\"task\":{\"name\":\"run\",\"privileged\":false}},\"on_abort\":{\"id\":\"5a1c6b2b\",\"task\":{\"name\":\"say-bye\",\"privileged\":false}}}},\"on_abort\":{\"id\":\"5a1c6b2d\",\"task\":{\"name\":\"say-bye\",\"privileged\":false}}}}\nExpecting an object with a field named `put` but instead got: {\"id\":\"5a1c6b2e\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2c\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2a\",\"task\":{\"name\":\"run\",\"privileged\":false}},\"on_abort\":{\"id\":\"5a1c6b2b\",\"task\":{\"name\":\"say-bye\",\"privileged\":false}}}},\"on_abort\":{\"id\":\"5a1c6b2d\",\"task\":{\"name\":\"say-bye\",\"privileged\":false}}}}\nExpecting an object with a field named `dependent_get` but instead got: {\"id\":\"5a1c6b2e\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2c\",\"on_abort\":{\"step\":{\"id\":\"5a1c6b2a\",\"task\":{\"name\":\"run\",\"privileged\":false}},\"on_abort\":{\"id\":\"5a1c6b2b\",\"task\":{\"name\":\"say-bye\",\"privileged\":false}}}},\"on_abort\":{\"id\":\"5a1c6b2d\",\"task\":{\"name\":\"say-bye\",\show on_abort hooks in build ui
bump atc
show on_abort hooks in build ui
bump atc go-runewidth pb.v1