step hangs when agent is deconnected

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Environment:

      I use pipeline and my steps are composed by sh step.

      during step execution if agent is disconnected the build hangs for ever.

      In logs I can see :
      Cannot contact slave008: java.lang.InterruptedException
      So I try to catch InterruptedException to stop the step but It does not work.

      I also try to use timeout but no way  build never fails !

      with jenkins 2.60.1 and all plugins up to date, behavior is the same.

      I check many others issues quite close but did not  find a workaround.

       

      is there a timeout somewhere to fail build in case of agent disconnection ?

       

       

      BR,

      Theo

            Assignee:
            Unassigned
            Reporter:
            Théophile Paimparay
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: