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

How to reference the node paramater from the active choices reactive parameter

XMLWordPrintable

      I am new to using this plugin so please bear with me.  I am trying to use this type of login in my active choices reactive parameter groovey code but nothing I am doing seems to work:

      if (Node.contains("name_of_slave_node")) {
       return ["you_chose_slave_node"]
      } else {
      return ["master"]
      }
      

      I basically want to drive a set of choices based on the node that they chose to run the build.  This may not be the correct path for this but if anyone could help guide me I would really appreciate it.

       

      I am using Jenkins 2.39 on windows.

            kinow Bruno P. Kinoshita
            timmay75 Timothy Henderson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: