Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-73209

Jenkins agent reliable connection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • remoting

      Hello folks,

      Recently I found that JNLP agent is not that good in reconnecting to known Jenkins Master. In case port is not available it will exit with exception instead of retry again and again (because potentially it holds the execution context, as far I understand that for plugins like git) - attached screenshot with error.

      So my question is - why jenkins agent don't retry forever if it's not it's first connection? Jenkins Master could restart or network have some errors in routing (with just drops of packets it's reconnecting just fine) - why the agent dies and losing the state? Or maybe I don't understand something important and jenkins agent will always pickup the state after restart?

      Additionally tested simple pipeline with git plugin - it gives no chance the agent to reconnect and fails the build... So in case the connectivity between the Jenkins Master & Agent is unstable or overloaded during git checkout - there is only one way to fail without continuing? How that could work in our real world where network connection is so unreliable?

      Thank you

            jthompson Jeff Thompson
            sparshev2 Sergei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: