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

Swarm plugin with -labelsFile does not delete removed labels

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • swarm-plugin
    • swarm-plugin 3.4
      Jenkins 2.60.2
    • 3.15

      Code on the Jenkins plugin side responsible for label removing has been commented out during cleanup.
      https://github.com/jenkinsci/swarm-plugin/blame/master/plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java#L144

      To reproduce:
      run swarm jar with -labelsFile option, modify label string in the file (add a new label and remove some existing label), wait for 10 seconds, go to the agent's page in Jenkins.
      The new label will appear, but the deleted one will remain.

            Unassigned Unassigned
            nickolayr Nickolay Rumyantsev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: