If we introduced something like the following for both the pipeline and
stage level, would that cover your use case?

pipeline {
  post {
    aborted {
      echo 'fired on abort'
    }
  }
}

On Tue, May 23, 2017 at 6:46 AM Dan Tran <[email protected]> wrote:

>
> our build sends out email notification for every build ( dont ask why: -),
> in case of intentional abort build by admin we prefer not to email out to
> reduce the noise. But still send to slack
>
> Thanks
>
> -Dan
>
> On Monday, May 22, 2017 at 1:12:50 PM UTC-7, James Dumay wrote:
>>
>> Out of curiosity if we did add a way to detect aborts what would you do
>> with it?
>>
>> On Monday, May 22, 2017 at 6:29:33 AM UTC+10, Dan Tran wrote:
>>>
>>>
>>> Hi is there a way to figure if the build is aborted also able to
>>> distinguish if is timed out or aborted by user
>>>
>>> Thanks
>>>
>>> -Dan
>>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/p98pCionpdk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/15e52884-841b-40ef-a9c8-cc7527e28d70%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/15e52884-841b-40ef-a9c8-cc7527e28d70%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
James Dumay,
Director of Product Management.
CloudBees, Inc.
Skype: jdumaycb Twitter: i386

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAErbOvQuFDy0aRTcETnFY097_ryLe%2B%3DBTu2KDexJML_6PeYDhA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to