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

Agent Server Parameter does not affect Free Style project's job node selection

XMLWordPrintable

      Agent Server Parameter does not affect Freestyle project's job node selection.

      System:

      • Jenkins 2.289.2 LTS from docker container
      • Several connected windows agent nodes
      • Pluging 'Agent Server Parameter'
      • Freestyle project project
      • Admin login

      Steps to reproduce:

      1. Open project
      2. Click 'Configure' to change project configuration
      3. Check 'This project is parameterized'
      4. Click 'Add Parameter'
      5. Select  'Agent Server Parameter' and set 'name' e.g. 'agent-node'.
      6. Save project configuration
      7. Click 'Build with Parameters'
      8.  For 'Agent Server Parameter' select non-default node name.
      9. Press 'Build' button
      10. Find started job and open the build page

      Expected result: new build agent name should be the same as set in 'Agent Server Parameter'  'name' .

      Actual Result: the actual new build agent name is different from selected name...

      See attached screenshot Screenshot2021-07-21.png

       

      Meantime, NODE plugin allows to select desired node as expected...

       

            bluersw Sun WeiSheng
            salmira Tetiana Tvardovska
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: