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
Modifier and TypeClassDescriptionstatic class
static class
static class
Nested classes/interfaces inherited from class org.jenkinsci.plugins.workflow.libs.ClasspathAdder
ClasspathAdder.Addition
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
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:ClasspathAdder
May add to the classpath.- Specified by:
add
in classClasspathAdder
- 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)
-