Re: Detecting build abort in declarative pipeline

2017-05-28 Thread James Dumay
Would you mind raising a ticket for this on http://issues.jenkins-ci.org/ under
the "pipeline-model-definition" component? We can take the discussion
further there.

On Tue, May 23, 2017 at 12:29 PM Dan Tran  wrote:

>
> not quite, we still need to distinguish  abort with timeout
>
> Thanks
>
> -Dan
>
>
> On Monday, May 22, 2017 at 2:27:16 PM UTC-7, James Dumay wrote:
>
>> 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  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
>>> jenkinsci-use...@googlegroups.com.
>>
>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/15e52884-841b-40ef-a9c8-cc7527e28d70%40googlegroups.com
>>> 
>>> .
>>> 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 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
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/33a3b5d5-66ac-43bf-b18d-7c4670381b3c%40googlegroups.com
> 
> .
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAErbOvTzbweSQ2Osri078yfQ9r9fwUus7rL3Cx_m-WhRZXW4RQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Detecting build abort in declarative pipeline

2017-05-22 Thread Dan Tran

not quite, we still need to distinguish  abort with timeout

Thanks 

-Dan

On Monday, May 22, 2017 at 2:27:16 PM UTC-7, James Dumay wrote:
>
> 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  
> 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 
>> jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/15e52884-841b-40ef-a9c8-cc7527e28d70%40googlegroups.com
>>  
>> 
>> .
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/33a3b5d5-66ac-43bf-b18d-7c4670381b3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Detecting build abort in declarative pipeline

2017-05-22 Thread James Dumay
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  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
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/15e52884-841b-40ef-a9c8-cc7527e28d70%40googlegroups.com
> 
> .
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
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.


Re: Detecting build abort in declarative pipeline

2017-05-22 Thread Dan Tran

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 the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/15e52884-841b-40ef-a9c8-cc7527e28d70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Detecting build abort in declarative pipeline

2017-05-22 Thread James Dumay
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 the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/dd05b066-a9dd-4620-ad47-e7747b6cd45c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Detecting build abort in declarative pipeline

2017-05-21 Thread Dan Tran

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 the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4883bb94-e53c-4bf8-be0b-fe2403c0f2dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.