Re: Avoiding job failure email notification when an old job is cancelled by a newer job when entering a throttled stage

2016-02-03 Thread Meiteimacha999
g. But for any other exceptions i was expecting it will be caught by the other. But it doesn't. On Wednesday, February 3, 2016 at 1:39:43 PM UTC-6, Meiteimacha999 wrote: > > okay - so when a job fails, it throws the exception: hudson.AbortException: > script returned exit co

Re: Avoiding job failure email notification when an old job is cancelled by a newer job when entering a throttled stage

2016-02-03 Thread Meiteimacha999
(like an IF statement) will be helpfull On Wednesday, February 3, 2016 at 11:17:21 AM UTC-6, Meiteimacha999 wrote: > > how do i check the difference? is there a way to print it in Windows? > > On Wednesday, February 3, 2016 at 10:58:40 AM UTC-6, Daniel Beck wrote: >> >>

Re: Avoiding job failure email notification when an old job is cancelled by a newer job when entering a throttled stage

2016-02-03 Thread Meiteimacha999
failed/aborted? > > On 03.02.2016, at 17:50, Meiteimacha999 > > wrote: > > > i have my workflow set up like so. This sends an email notification when > a job fails. > > > > > > > > > > node("slave1") { > > ws("e:\\je

Avoiding job failure email notification when an old job is cancelled by a newer job when entering a throttled stage

2016-02-03 Thread Meiteimacha999
i have my workflow set up like so. This sends an email notification when a job fails. node("slave1") { ws("e:\\jenkins\\workspace\\jobname\\${env.BUILD_NUMBER}") { try{ stage name: 'sync', concurrency: 2 bat '''echo "before sync" set a=%RANDOM% echo %a% echo "after sync"''' slee