Hi, timeout has "activity" flag: When set, it timeout after no activity in logs for this block instead of absolute duration. If your testcases print something in console, it may fit your needs.
timeout(activity: true, time: 1, unit: 'HOURS') { // some block } Xavier From: "Baptiste Mathus" <m...@batmat.net> To: "jenkinsci-users" <jenkinsci-users@googlegroups.com> Sent: Wednesday, February 8, 2023 1:49:39 PM Subject: Re: Detect in a pipeline that a node is not working I mean putting a high timeout, like 1 hour, or 10 or whatever depending on what it does, so the pipeline eventually does complete and creates the reports. Without this, it may indeed stay stalled forever. Le mar. 7 févr. 2023 à 22:18, 'Jean-Philippe Humbert' via Jenkins Users < [ mailto:jenkinsci-users@googlegroups.com | jenkinsci-users@googlegroups.com ] > a écrit : This is not a solution for me. I can’t predict the duration of some test cases. BQ_BEGIN Le 7 févr. 2023 à 20:01, Baptiste Mathus < [ mailto:m...@batmat.net | m...@batmat.net ] > a écrit : I'd consider simply putting a timeout in place for this node or so, so it eventually fails and you get to your reporting step. Le mar. 7 févr. 2023 à 17:13, 'Jean-Philippe Humbert' via Jenkins Users < [ mailto:jenkinsci-users@googlegroups.com | jenkinsci-users@googlegroups.com ] > a écrit : BQ_BEGIN I need some help for the following problem: I have a pipeline which starts parallel jobs (test cases) and wait until they are all finished, to produce a report. Sometime the test case breaks the node (OS crash, the network not responding). My pipeline waits because of the hung job. Jenkins shows me that the connection with the node ist nor working. My question: can I check this situation in my pipeline, setting the job as failed and my test report will be produced? -- 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 [ mailto:jenkinsci-users+unsubscr...@googlegroups.com | jenkinsci-users+unsubscr...@googlegroups.com ] . To view this discussion on the web visit [ https://groups.google.com/d/msgid/jenkinsci-users/06023261-10F2-4F8D-8607-662911E860C1%40me.com?utm_medium=email&utm_source=footer | https://groups.google.com/d/msgid/jenkinsci-users/06023261-10F2-4F8D-8607-662911E860C1%40me.com ] . -- 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 [ mailto:jenkinsci-users+unsubscr...@googlegroups.com | jenkinsci-users+unsubscr...@googlegroups.com ] . To view this discussion on the web visit [ https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7Bj%2B74DOxRCyu5hGumaXE1MZ16EdrQMcS1tF_1bxzp-g%40mail.gmail.com?utm_medium=email&utm_source=footer | https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7Bj%2B74DOxRCyu5hGumaXE1MZ16EdrQMcS1tF_1bxzp-g%40mail.gmail.com ] . BQ_END -- 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 [ mailto:jenkinsci-users+unsubscr...@googlegroups.com | jenkinsci-users+unsubscr...@googlegroups.com ] . To view this discussion on the web visit [ https://groups.google.com/d/msgid/jenkinsci-users/D12AB1AA-4C74-429A-9D72-1D3FCFAC5730%40me.com?utm_medium=email&utm_source=footer | https://groups.google.com/d/msgid/jenkinsci-users/D12AB1AA-4C74-429A-9D72-1D3FCFAC5730%40me.com ] . BQ_END -- 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 [ mailto:jenkinsci-users+unsubscr...@googlegroups.com | jenkinsci-users+unsubscr...@googlegroups.com ] . To view this discussion on the web visit [ https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS4K2Pxo_v%2BJB%3DFr6fos8eEEm6S8crtT_eK%3DUF%3D94S09MA%40mail.gmail.com?utm_medium=email&utm_source=footer | https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS4K2Pxo_v%2BJB%3DFr6fos8eEEm6S8crtT_eK%3DUF%3D94S09MA%40mail.gmail.com ] . -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1558805552.906593.1675871294579.JavaMail.zimbra%40kalray.eu.