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

Usage in jenkinsfiles

XMLWordPrintable

      I wish for an implementation of this plugin, that I can use in my Jenkinsfiles. Right now it's either not possible, or not straight forward, to configure a node/label parameter in the parameters-block of a Jenkinsfile.

      If the functionality exists, extending the documenation would be appreciated.

      I tried it this way:

      parameters {
              $class: 'NodeParameterValue'(name: 'nodeName',labels: ['label1', 'label2'], nodeEligibility: [$class: 'IgnoreOfflineNodeEligibility'])
          } 

      but Jenkins only accepts the "standard" classes for parameters.

            Unassigned Unassigned
            ger_senshi Julian Krieger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: