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

Allow subfolders in vars/ global shared library

XMLWordPrintable

      That would be really nice if workflow-cps-global-lib-plugin allow subfolders in vars/ directory.

      At this time it doesn't seem to traverse a directory tree when rebuilding its list : https://github.com/jenkinsci/workflow-cps-global-lib-plugin/blob/master/src/main/java/org/jenkinsci/plugins/workflow/cps/global/UserDefinedGlobalVariableList.java#L39

      I'm working on a library with a lot of variables and that would be easier to maintain if I could sort them in subfolders like this : 

      (root)
      +- src                   
      |   +- org
      |       +- foo
      |           +- Bar.groovy 
      +- vars
      |   +- folder1
      |   |   +-varOne.groovy         
      |   |   +-varTwo.groovy
      |   |
      |   +- folder2
      |       +- varThree.groovy          
      |
      

            Unassigned Unassigned
            nverle Nicolas VERLE
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: