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

Job is run twice on first agent using label parameter

XMLWordPrintable

    • 1.11.0

      I have multiple agents that have multiple labels\tags. Four of those agents are online and all 4 have 'sales' (no quotes) as one of their labels.

      I add a label parameter to a job, and I specify 'sales' as the value (no quotes).

      The job runs fine, and it targets all four agents. Unfortunately, it runs twice on the first agent (5 iterations total). If I use a NODE parameter instead, and select all 4 agents, it runs 4 times (once on each).

      I have checked the box "Run on all nodes matching the label". I have selected "Run regardless of result" radio button. In terms of Node eligibility, I have selected "Ignore offline nodes".

      It has nothing to do with that particular agent (agentA), because when I take it offline, and run the job again using the same label, the job is run twice on a different agent(agentB), and only once and the other two agents (agentC,agentD).

            domi Dominik Bartholdi
            pimyjenkins Rob Pimentel
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: