This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      Reporting this as suggested by jglick at https://stackoverflow.com/a/29806918/45375:

      In short: job parameters of type "node" and "label" are not correctly instantiated by the Snippet Generator.

      Current behavior:

      When I use the Snippet Generator with "Build a job", the generated code is :
      
      build job: 'test job', parameters: [<object of type org.jvnet.jenkins.plugins.nodelabelparameter.NodeParameterValue>]
      
      
      

      Expected behavior (example, assuming a parameter name of "UPSTREAM_NODE", a node name of "my_node"):

      build job: 'test job', parameters: [[$class: 'NodeParameterValue', name: 'UPSTREAM_NODE', labels: ['my_node'], nodeEligibility: [$class: 'AllNodeEligibility']]]
      
      

       

       

            Assignee:
            Unassigned
            Reporter:
            Michael Klement
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: