How do I make a pipeline not hang when an agent dies?

2024-03-03 Thread Ansis Māliņš
Currently, when an agent dies in the middle of building something, the pipeline job in Jenkins hangs forever. How do I make Jenkins fail or abort the job instead? Please do not suggest setting a timeout. When the hang happens the last message in the log is Cannot contact oceansong: java.lang.Int

Re: How do I make a pipeline not hang when an agent dies?

2024-03-04 Thread Ansis Māliņš
ou can use try { ... } catch (error) { ... } and set minimal timeout > -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=60 > (more details in https://issues.jenkins.io/browse/JENKINS-48300) > > > 04.03.24 07:12, Ansis Māliņš: > > Currently, when an a