Class LibraryAdder

java.lang.Object
org.jenkinsci.plugins.workflow.libs.ClasspathAdder
org.jenkinsci.plugins.workflow.libs.LibraryAdder
All Implemented Interfaces:
ExtensionPoint

@Extension public class LibraryAdder extends ClasspathAdder
Given LibraryResolver, actually adds to the Groovy classpath.
  • Constructor Details

    • LibraryAdder

      public LibraryAdder()
  • Method Details

    • add

      public List<ClasspathAdder.Addition> add(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution execution, List<String> libraries, HashMap<String,Boolean> changelogs) throws Exception
      Description copied from class: ClasspathAdder
      May add to the classpath.
      Specified by:
      add in class ClasspathAdder
      Parameters:
      execution - a running build (possibly newly started, possibly resumed)
      libraries - aggregated entries from all encountered Library.value() (will be empty if Library is never used at all); an implementation should remove entries it “claims”
      Returns:
      a possibly empty list of additions
      Throws:
      Exception - for whatever reason (will fail compilation)