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
Other CI systems have features like "perform some action (e.g. email/slack) on every failure and once when the build is fixed, but not every time the build passes."
@osis no - the intention here is to be able to capture scenarios like:
this job passed on the most recent run, and because the previous run failed I will send an email
this job passed on the most recent run, but because the previous run succeeded I will not send an email
The challenge here is that the existing hooks like on_failure and on_success are stateless; they do not take into account any history. This is by design, and makes concourse much simpler, but also much less powerful.
I've used this proposed feature on other CI tools with success - I think there's a lot of value in this conditional notification.
Wouldn't it be simpler for the statefulness to exist in a resource that provides input to the task that is called from on_failure or on_success? That way, you're keeping the state in the resource (where it belongs).
@fiddlerpianist yes, that would be simpler from concourse's perspective, and I agree would fit much more cleanly into the stateless architecture of concourse.
Except now we have to extend each and every resource with this feature. Instead of consolidating this logic in once place we have to re-invent it multiple times. Once for the email resource, once for slack resource, etc.
To be clear, I don't expect this feature to land precisely because it's quite far from concourse's current architecture and philosophy, but it's a feature I miss from other CI systems, and I think there's value in capturing this conversation in a public form for future reference.
Activity
[-]Stateful[/-][+]Stateful Hooks[/+]concourse-bot commentedon Jul 23, 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 a *bunch* of dependencies
osis commentedon Mar 16, 2017
@robdimsdale do the on_success on_failure hooks fulfill this need?
robdimsdale commentedon Mar 16, 2017
@osis no - the intention here is to be able to capture scenarios like:
The challenge here is that the existing hooks like
on_failureandon_successare stateless; they do not take into account any history. This is by design, and makes concourse much simpler, but also much less powerful.I've used this proposed feature on other CI tools with success - I think there's a lot of value in this conditional notification.
fiddlerpianist commentedon Mar 16, 2017
Wouldn't it be simpler for the statefulness to exist in a resource that provides input to the task that is called from
on_failureoron_success? That way, you're keeping the state in the resource (where it belongs).robdimsdale commentedon Mar 16, 2017
@fiddlerpianist yes, that would be simpler from concourse's perspective, and I agree would fit much more cleanly into the stateless architecture of concourse.
Except now we have to extend each and every resource with this feature. Instead of consolidating this logic in once place we have to re-invent it multiple times. Once for the email resource, once for slack resource, etc.
To be clear, I don't expect this feature to land precisely because it's quite far from concourse's current architecture and philosophy, but it's a feature I miss from other CI systems, and I think there's value in capturing this conversation in a public form for future reference.
jama22 commentedon Aug 9, 2017
Hi there, while it is very interesting to do, there isn't much traction on this so we're closing it for now.
bump etree tsa handlers mux clockwork goxmldsig genproto grpc