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

Node should have a getProperty method to get aNodeProperty for specific class

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • core
    • None

      Like Job has a
      public <T extends JobProperty> T getProperty(Class<T> clazz)
      and
      public JobProperty getProperty(String className)

      there should be similar methods for a Node
      public <T extends NodeProperty> T getProperty(Class<T> clazz)
      and
      public NodeProperty getProperty(String className)

      This makes it easier when you write your own NodeProperty and want to check if it is set on a node or not.

            Unassigned Unassigned
            mwinter69 Markus Winter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: