Hi David Thanks for your reply.
> What you should do is focus on each one of these tasks separately. I have difficulty with that approach. I agree that it is possible to understand individual steps by looking at existing examples or using the snippet generator, but I need help in putting the bits together. For example, after running a shell script I want to send an email notification with the result. My attempt to do so sent a build result of 'BUILDING'. This must mean that I am calling the email plugin at the wrong time, or not giving it the correct result (perhaps I need a try ... finally block). But my point is that it is not clear to me how to connect the steps. I would like to have a complete example. Best regards David > -----Original Message----- > From: [email protected] [mailto:jenkinsci- > [email protected]] On Behalf Of David Karr > Sent: 27 April 2017 18:08 > To: Jenkins Users <[email protected]> > Subject: Re: Request for simple pipeline example to do checkout, run shell > script, email result > > On Thu, Apr 27, 2017 at 3:05 AM, David Aldrich > <[email protected]> wrote: > > Hi > > > > > > > > Please can anyone point me to, or provide, a simple and complete > > pipeline script example to do a checkout, run a shell script and email the > result? > > > > > > > > I am using svn, but a git example would be ok. > > What you should do is focus on each one of these tasks separately. > Each one of these will use pipeline steps and Groovy code. Use the "Pipeline > Syntax" link within the "Pipeline" section of the job definition to see > examples > of what pipeline steps are available to you. On this page, you can generate > example code. > > Doing a git checkout requires the "git" function. Running a shell script uses > "sh", and sending email could use the "email-ext" > function, although there may be others. > > -- > 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/CAA5t8VrFJ2GA3p1hoztayT1t9tH8tagvSefj2eTG5BkqZ_1%2BVQ%40mail > .gmail.com. > For more options, visit https://groups.google.com/d/optout. > > > Click > https://www.mailcontrol.com/sr/0yt4T6!T5bTGX2PQPOmvUmuFhuAgpUQ2CB > KREum+VQGxhSt75yjqKxzlfBkZKVUJ5srBIUSVvPiDL!bKPtQR4w== 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c460653f19484f33a43a55a9b36983a6%40EUX13SRV1.EU.NEC.COM. For more options, visit https://groups.google.com/d/optout.
