Class ClasspathAdder

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

public abstract class ClasspathAdder extends Object implements ExtensionPoint
Allows libraries to be mapped to actual classpath additions.
  • Constructor Details

    • ClasspathAdder

      public ClasspathAdder()
  • Method Details

    • add

      @NonNull public abstract List<ClasspathAdder.Addition> add(@NonNull org.jenkinsci.plugins.workflow.cps.CpsFlowExecution execution, @NonNull List<String> libraries, @NonNull HashMap<String,Boolean> changelogs) throws Exception
      May add to the classpath.
      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)