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

workflow-cps-global-lib: inheritance (extends) not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • workflow-cps-plugin
    • None

      I'm not able to use inheritance in Workflow Global Library code.

      Here is a simple example to demonstrate:

      // src/com/test/MyMap.groovy
      
      package com.test
      
      class MyMap extends HashMap {
      
          def test(String property) {
              super.get(property)
          }
      }
      

            Unassigned Unassigned
            vehovmar Martin Vehovsky
            Votes:
            17 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated: