• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None

      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

          [JENKINS-45340] step hangs when agent is deconnected

          Ben Spoor added a comment -

          There is a recent issue JENKINS-43038 about a very similar issue:

          Cannot contact <node-name>: java.lang.InterruptedException

          Ben Spoor added a comment - There is a recent issue JENKINS-43038  about a very similar issue: Cannot contact <node-name>: java.lang.InterruptedException

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

              Created:
              Updated: