• 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

          Théophile Paimparay created issue -
          Andrew Bayer made changes -
          Component/s New: workflow-durable-task-step-plugin [ 21715 ]
          Component/s Original: pipeline [ 21692 ]

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

              Created:
              Updated: