I agree that some better examples would help a lot.  In particular, an example 
script that runs a shell command and provides an email notification would be a 
great help.

> So far, I use simple Jenkins file that launch a lot of console cmd …

Please will you post your Jenkins file here or send it to me by email?

Best regards

David

From: jer...@bodycad.com [mailto:jer...@bodycad.com]
Sent: 24 April 2017 18:32
To: Jenkins Users <jenkinsci-users@googlegroups.com>
Cc: David Aldrich <david.aldr...@emea.nec.com>
Subject: Re: How to use email-ext plugin in pipeline script?

It's not so hard, it's just some behavior/limitations that are a bit hard to 
grasp (groovy loop anyone). I think they went on a road to provide some 
features at high trade back cost.

If you want some examples more like real life usage:
https://github.com/jenkinsci/pipeline-examples

I would love to have better or complex examples, that would save a lots of 
questions on this lists and people wouldn't get so frustrated trying to achieve 
simple stuff.

Some people must have made a few .groovy that could be used by many, that would 
be great if that could be shared between user, like plugins one day. I made a 
few python scripts to help me back into the Jenkins non pipeline era, I still 
use them, but passing them to Groovy would be a pain, since even if I made a 
normal groovy script, I would still have to validate the Jenkins 'groovy' alike 
language can output the same thing and probably have to allow a few dozen of 
functions into scripts approval.

So far, I use simple Jenkins file that launch a lot of console cmd (Python 
code, msbuild command, batch/bash script, custom C# program) that I can test 
into console. Work fine, except the Windows slave hang and the new email-ext 
that doesn't resolve the absolute path on node.


Click 
here<https://www.mailcontrol.com/sr/dZ9H4wkOqTrGX2PQPOmvUujshICbHL2sYJ4+KqNw+!u7nnVeX8W8liTVwP4BQ5RGdWPgeKwmJJzgE3KctAewCA==>
 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ba9e9b9e7f3b48e2971ef844274d1b98%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

Reply via email to