Re: Get stage name in pipeline

2019-08-24 Thread amit r
Hi,
Even if you have parallel stages, you still can have different stages printed 
with any info that u wish.
Lets assume that you call each stage with different name.
You can define for your stage withEnv function what will print also your stage 
name or just like the msg above mentioned.

Did you try it and didnt work?
Share your pipeline if have more issue..

Amit Rintzler

בתאריך יום שבת, 24 באוגוסט 2019 בשעה 16:12:54 UTC+3, מאת Sureshkumar Ramar:
> Hi,
> Thanks for your answer and this should work when your pipeline only has 
> sequence stages. In parallel stages two or more stage got failed then one 
> stage name will replaced by another stage name . So, i can't get all the 
> failed stage. Is there any other way?
> 
> 
> 
> 
> On Fri, 23 Aug, 2019, 5:06 PM Faad Sayaou,  wrote:
> 
> 
> 
> 
>   you can include this in every stage
>   FAILED_STAGE=env.STAGE_NAME
> 
> 
> 
> and in your email you can call the property $FAILED_STAGE.
> hope it helps
> 
> 
> 
> 
> On Fri, 23 Aug 2019 at 12:42, Sureshkumar Ramar  wrote:
> 
> Hi,
> i am using jenkins pipeline. i want to send the failed stage name to the 
> developer. is there a way to capture the failure stage in jenkins. it should 
> work in parallel stages also. 
> 
> 
> -- 
> 
> 
> Thanks & Regards,
> Suresh Kumar R
> 
> 
> 
> 
> -- 
> 
> 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 jenkins...@googlegroups.com.
> 
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/CAM6nqfeQ9sPjgT-nPf%2BhWDY-nuE30%3D3O6No-10WLT3G%2B-jiPvg%40mail.gmail.com.
> 
> 
> 
> 
> -- 
> 
> 
> 
> 
> 
> Best Regards / Mit freundlichen Grüßen,
> Faad Sayaou,
> Embedded Systems for Mechatronics Masters student | FH Dortmund | Germany
> Fachhochschule Dortmund
> University of Applied Sciences and Arts
> Email: faad...@gmail.com
> 
> 
> 
> 
> 
> 
> -- 
> 
> 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 jenkins...@googlegroups.com.
> 
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/CAL2KjjRd%3DbqTJdU99Tp8Bj22Q9ryPCZnN%3D9O10QpO5m7KW7N7g%40mail.gmail.com.

-- 
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/122c7898-1ad4-42c0-b1a0-00cce807d50c%40googlegroups.com.


Re: Get stage name in pipeline

2019-08-24 Thread Sureshkumar Ramar
Hi,
Thanks for your answer and this should work when your pipeline only has
sequence stages. In parallel stages two or more stage got failed then one
stage name will replaced by another stage name . So, i can't get all the
failed stage. Is there any other way?


On Fri, 23 Aug, 2019, 5:06 PM Faad Sayaou,  wrote:

>
>   you can include this in every stage
>   FAILED_STAGE=env.STAGE_NAME
>
> and in your email you can call the property $FAILED_STAGE.
> hope it helps
>
>
> On Fri, 23 Aug 2019 at 12:42, Sureshkumar Ramar <
> sureshkumar.ra...@gmail.com> wrote:
>
>> Hi,
>> i am using jenkins pipeline. i want to send the failed stage name to the
>> developer. is there a way to capture the failure stage in jenkins. it
>> should work in parallel stages also.
>>
>> --
>> Thanks & Regards,
>> Suresh Kumar R
>>
>> --
>> 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/CAM6nqfeQ9sPjgT-nPf%2BhWDY-nuE30%3D3O6No-10WLT3G%2B-jiPvg%40mail.gmail.com
>> 
>> .
>>
>
>
> --
>
> *Best Regards / Mit freundlichen Grüßen,*
>
> *Faad Sayaou,*
>
> *Embedded Systems for Mechatronics Masters student | FH Dortmund | Germany*
>
> *Fachhochschule Dortmund*
>
> *University of Applied Sciences and Arts*
>
> *Email*: f aad...@gmail.com
>
>
> --
> 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/CAL2KjjRd%3DbqTJdU99Tp8Bj22Q9ryPCZnN%3D9O10QpO5m7KW7N7g%40mail.gmail.com
> 
> .
>

-- 
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/CAM6nqfeUBQm0Xo-9C5zk1xrPkAjhxfNSPTKn%3DcACHpiKxKSNAQ%40mail.gmail.com.