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

OnceRetentionStrategy does not handle disconnected agants

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins 2.364.3-rc
      durable-task:496.va67c6f9eefa7
      workflow-durable-task-step:1190.vc93d7d457042
      google-compute-engine:4.3.9
    • durable-task-plugin 555.v6802fe0f0b_82

      If an outbound Cloud Agent become disconnected and is using the OnceRetentionStrategy it will never attempt to reconnect.

      Steps to reproduce

      • create a Cloud using Google Cloud Engine
      • set the cloud One-Shot to enabled
      • create a pipeline job using the node to execute `sh 'sleep 240'`
      • start the job
      • wait for the node to be provisioned and terminate the `agent.jar` process

      Expected Outcome

      • Jenkins detects the agent is disconnected and attempts to relaunch it
      • job continues successfully to completion

      Actual

      • Jenkins detects the agent is disconnected but does not attempt to relaunch it.
      • Job stays in limbo land.

          [JENKINS-69277] OnceRetentionStrategy does not handle disconnected agants

          James Nord created issue -
          James Nord made changes -
          Assignee Original: Evan Brown [ evanbrown ] New: James Nord [ teilo ]
          James Nord made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          James Nord made changes -
          Summary Original: OnceExecutorStrategy does not handle disconnected agants New: OnceRetentionStrategy does not handle disconnected agants
          James Nord made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          James Nord made changes -
          Remote Link New: This issue links to "PR (Web Link)" [ 28101 ]
          James Nord made changes -
          Released As New: durable-task-plugin 555.v6802fe0f0b_82
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]
          James Nord made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]
          James Nord made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            teilo James Nord
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: