Understood. But the multibranch plugin is marked as deprecated and it seems 
that the multibranch pipeline is advised.  Multibranch projects are very 
helpful for us so I thought it would be good to look at pipelines.

I guess I may be advised to try Blue Ocean, but that is git-centric and we are 
svn-centric.  So we’re a bit stuck ☹

From: [email protected] 
[mailto:[email protected]] On Behalf Of Slide
Sent: 24 April 2017 17:24
To: [email protected]
Subject: Re: How to use email-ext plugin in pipeline script?

I'll be completely honest here and say that pipeline isn't for everyone. Not 
ever build setup needs pipeline. Free style projects are just fine to use 
still. If they meet your needs, then I don't see a reason to switch to pipeline.

On Mon, Apr 24, 2017 at 9:17 AM David Aldrich 
<[email protected]<mailto:[email protected]>> wrote:
Thanks for your answer.

I’m beginning to think that pipeline scripting is too difficult.  It seems to 
me that there aren’t enough complete examples to demonstrate this stuff.  The 
snippets generator does not help with putting a complete script together.

Jenkins seems to have gone from being very user friendly to difficult ☹

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of [email protected]<mailto:[email protected]>
Sent: 24 April 2017 17:13
To: Jenkins Users 
<[email protected]<mailto:[email protected]>>
Cc: David Aldrich 
<[email protected]<mailto:[email protected]>>
Subject: Re: How to use email-ext plugin in pipeline script?

You can check the currentBuild status just before sending the email:

currentBuild.result

If empty it mean nothing have set it to warning or error yet. you can set it to 
success
if(!currentBuild.result)
{
  currentBuild.result = 'SUCCESS'
}

or you could set it directly into the email without touching the 
currentBuild.result variable or use another variables into a custom template.

--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/dd403b4e-dd28-484b-9c7e-3f8342e6faa6%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/dd403b4e-dd28-484b-9c7e-3f8342e6faa6%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

Click 
here<https://www.mailcontrol.com/sr/L+2l27a2kTrGX2PQPOmvUgTs32qy68qNUVJKfAczjM2APaRp+v6dvCYeKwmTQzqndWPgeKwmJJwJwVIOzJj0SQ==>
 to report this email as spam.
--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/867d39cd53494612b471bc5238f31d16%40EUX13SRV1.EU.NEC.COM<https://groups.google.com/d/msgid/jenkinsci-users/867d39cd53494612b471bc5238f31d16%40EUX13SRV1.EU.NEC.COM?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVd77cZ0G8hrXn5jDzPzBUZL04mAex0nrBU2cCKQTxgMaw%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVd77cZ0G8hrXn5jDzPzBUZL04mAex0nrBU2cCKQTxgMaw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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/56f231f9e9ca452b8106b5a524e8e7b8%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

Reply via email to