I have a stage in Jenkins pipeline(declarative) on my windows machine. There is a script that runs forever. However i need logs and have to ensure it doesnt break in between so i cannot run it in background. Bascially i am looking for if there is not logs populating in jenkins for sometime it should proceed to next stage with "SUCCESS" status of that stage.
I have used time option, however it is marking the job as failure and successive stage wont run and job gets aborted.
timeout(time: 150, unit: 'SECONDS', activity: true)
Any way if i can mark the status of stage to success after so and so duration.
Thanks,