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

Saving a swarm client agent via the UI causes it not to be removed on agent disconnect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • swarm-plugin
    • None
    • Jenkins: 2.289.3
      Swarm Plugin: 3.28

      Steps to reproduce:

      1. Start up Jenkins
      2. Add Swarm plugin
      3. java -jar .\swarm-client.jar -url http://localhost:8080 -executors 1 -deleteExistingClients -disableClientsUniqueId
      1. Open the new node via the UI and save it (do not need to change anything)
      2. Ctrl-C the swarm client process

      Notice that the Jenkins Node object remains and is not cleanly deleted as expected.

      It appears that when the agent is saved by the UI, the afterDisconnect call in SwarmLauncher is no longer hit

            Unassigned Unassigned
            rimitchell Richard
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: