Method definition not expected here. Please define the method at an appropriate place or perhaps try using a block/Closure instead

2021-02-08 Thread Paras Pandey
> git rev-list --no-walk d6ca7916095bc6b95612d3cf663d57508ec08af3 # timeout=10 [Checks API] No suitable checks publisher found. Running in Durability level: MAX_SURVIVABILITY [Checks API] No suitable checks publisher found. org.codehaus.groovy.control.MultipleCompilationErrorsException: start

Unable to send mails from Jenkins (Azure VM)

2021-02-08 Thread rk.de...@gmail.com
Hello Everyone, I recently setup Jenkins on Ubuntu 18.04 LTS (Azure VM) and I am unable to send mail from that. I setup SMTP server as "smtp.office365.com" Default user e-mail suffix as "@.com" I setup SMTP Authentication using my AD credentials SMTP port as 587 Charset as UTF-8 When I try to s

Re: Pipeline retry step

2021-02-08 Thread Graham Hay
Good idea, thanks. On Mon, Feb 8, 2021 at 2:19 PM wrote: > Hi Graham, > > I have no ide … but why not test it? > > It’s quite straightforward: > > > > Retry(1) { > >Error(“This will fail … but how many times you will see this text?”) > > } > > > > Cheers, > > Gianluca. > > > > > > *From:* je

RE: Pipeline retry step

2021-02-08 Thread gmaxera
Hi Graham, I have no ide … but why not test it? It’s quite straightforward: Retry(1) { Error(“This will fail … but how many times you will see this text?”) } Cheers, Gianluca. From: jenkinsci-users@googlegroups.com On Behalf Of Graham Hay Sent: 08 February 2021 12:50 To: Je

Pipeline retry step

2021-02-08 Thread Graham Hay
https://www.jenkins.io/doc/pipeline/steps/workflow-basic-steps/#retry-retry-the-body-up-to-n-times Can someone clarify for me what retry(1) will do? Will that run the step twice, if it fails? Or does the count include the original attempt? (I tried to find the source code, but didn't even know w