Class ClasspathAdder
java.lang.Object
org.jenkinsci.plugins.workflow.libs.ClasspathAdder
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
LibraryAdder
Allows libraries to be mapped to actual classpath additions.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
-
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 ExceptionMay add to the classpath.- Parameters:
execution
- a running build (possibly newly started, possibly resumed)libraries
- aggregated entries from all encounteredLibrary.value()
(will be empty ifLibrary
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)
-