Class LibraryAdder
java.lang.Object
org.jenkinsci.plugins.workflow.libs.ClasspathAdder
org.jenkinsci.plugins.workflow.libs.LibraryAdder
- All Implemented Interfaces:
ExtensionPoint
Given
LibraryResolver, actually adds to the Groovy classpath.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from class org.jenkinsci.plugins.workflow.libs.ClasspathAdder
ClasspathAdder.AdditionNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
-
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 ExceptionDescription copied from class:ClasspathAdderMay add to the classpath.- Specified by:
addin classClasspathAdder- Parameters:
execution- a running build (possibly newly started, possibly resumed)libraries- aggregated entries from all encounteredLibrary.value()(will be empty ifLibraryis 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)
-