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
Unable to trigger job based on another job failure #46
For example, having single job sending out notifications about failures (e.g. put on hypothetical email-sending-resource) is not possible now. If failure could trigger some job, it should be possible to add some 'notify-about-fail' job to the pipeline and hook it up such way that any other failing job would trigger notification.
@mariash The on_failure step works of course, but given a bigger pipeline, one might want to declare on_failure on a job level instead. Besides avoiding duplication when many tasks have the same attributes, this seems to be the right place for notifications. When a job fails it's usually not relevant for the notification itself, which specific task failed.
Other (probably out of scope) ideas:
A global default section which is applied to all tasks and/or get/put steps. This would be a generally useful feature as things like tags are often used throughout the pipeline:
defaults:
tasks:
on_failure: ...put:
tags: ['x']
A global on_failure definition for a complete pipeline run, thus a single event containing a summary of all job results/failures. Although, it seems, there is not such a thing as 'a pipeline run'.
I don't really like the idea of "left to right" in the pipeline view meaning anything but successful progression.
I'm gonna close this since it's a "no" to the initial proposal, but a more open-ended issue covering the root of the desire (i.e. notifications/push to Slack channels/etc) may be worth having to re-open the discussion from a fresh viewpoint.
Activity
concourse-bot commentedon Jul 21, 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.
bump atc
mariash commentedon Mar 18, 2016
@Nopik there is https://concourse.ci/on-failure-step.html that might do what you need.
bump garden
bump garden atc baggageclaim blackbox fly go-archive go-concourse jet…
friegger commentedon Aug 25, 2016
@mariash The
on_failurestep works of course, but given a bigger pipeline, one might want to declareon_failureon a job level instead. Besides avoiding duplication when many tasks have the same attributes, this seems to be the right place for notifications. When a job fails it's usually not relevant for the notification itself, which specific task failed.Other (probably out of scope) ideas:
defaultsection which is applied to all tasks and/or get/put steps. This would be a generally useful feature as things liketagsare often used throughout the pipeline:jeanbza commentedon Aug 30, 2016
+1 this feature would be nice. As an extra note, a way to distinguish this relationship would be nice - maybe a dotted line, or something like that?
JohannesRudolph commentedon Oct 29, 2016
I think this is partly addressed in v2.4 which adds job-level
on_successandon_failurevito commentedon Oct 29, 2016
Not really; that's just syntactic sugar so you don't have to wrap the whole
planin adostep.vito commentedon Mar 15, 2017
I don't really like the idea of "left to right" in the pipeline view meaning anything but successful progression.
I'm gonna close this since it's a "no" to the initial proposal, but a more open-ended issue covering the root of the desire (i.e. notifications/push to Slack channels/etc) may be worth having to re-open the discussion from a fresh viewpoint.
bump pat atc testflight rata
bump atc baggageclaim bin fly skymarshal web