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
GivenLibraryResolver
, actually adds to the Groovy classpath.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LibraryAdder.Copier
static class
LibraryAdder.GlobalVars
static class
LibraryAdder.LoadedLibraries
-
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
Constructors Constructor Description LibraryAdder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ClasspathAdder.Addition>
add(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution execution, List<String> libraries, HashMap<String,Boolean> changelogs)
May add to the classpath.
-
-
-
Method Detail
-
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 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)
-
-