Re: Declarative pipeline with loop and input timeout

2017-08-16 Thread Guy Knights
Thanks Victor, I'll take a look at it when I get a chance and see if I can use your solution. Cheers, Guy On Tue, Aug 15, 2017 at 1:49 PM, Victor Martinez < victormartinezru...@gmail.com> wrote: > I did a kind of similar but not equally implementation. The important bit > is to try/catch and ens

Re: Declarative pipeline with loop and input timeout

2017-08-15 Thread Victor Martinez
I did a kind of similar but not equally implementation. The important bit is to try/catch and ensure the last true/false command is in the right logic, please read the below: My use case was to run a certain Integration Test, then if it failed for whatever reason, prompt to the user whether to

Re: Declarative pipeline with loop and input timeout

2017-08-15 Thread Guy Knights
Does anyone have any suggestions for how I can make this work? Thanks, Guy On Tuesday, August 1, 2017 at 12:17:42 PM UTC-7, Guy Knights wrote: > > I have an input step in a declarative pipeline and I want to add some > logic so that if the input step waits too long for someone to proceed, it >

Declarative pipeline with loop and input timeout

2017-08-01 Thread Guy Knights
I have an input step in a declarative pipeline and I want to add some logic so that if the input step waits too long for someone to proceed, it will send a reminder notification and loop, starting a new timeout. What I have so far is this: waitUntil { timeout(time: 3, unit: 'MINUTES' )