|Constructor and Description|
|Modifier and Type||Method and Description|
Check for libraries visible to a given job.
A list of libraries that may have already been configured in this context.
Whether these libraries should be run outside the sandbox.
A list of libraries that might be visible in a given location.
public abstract boolean isTrusted()
@NonNull public abstract Collection<LibraryConfiguration> forJob(@NonNull Job<?,?> job, @NonNull Map<String,String> libraryVersions)
An implementation may ignore the
and simply list configured libraries visible to the job;
the caller will select which libraries to actually load,
taking into account
Or it may dynamically generate library configurations
by matching library names against some predefined pattern.
By returning a library with a matching
this resolver “claims” that entry of
subsequent resolvers will not be offered that entry.
It is an error if no resolver claims a given entry.
Multiple resolvers might return a library of a given name if the libraries are implicit,
in which case only the first will be loaded.
job- a job
libraryVersions- libraries explicitly requested in the job, as a map from
LibraryConfiguration.getName()to version or null; may be empty
@NonNull public Collection<LibraryConfiguration> fromConfiguration(@NonNull org.kohsuke.stapler.StaplerRequest request)
request- a web request
@NonNull public Collection<LibraryConfiguration> suggestedConfigurations(@NonNull ItemGroup<?> group)
forJob(hudson.model.Job<?, ?>, java.util.Map<java.lang.String, java.lang.String>)applied to
AbstractItem.getParent(). If a resolver can dynamically generate library configurations, it can simply return one or more examples here.
group- Jenkins root or some folder
Copyright © 2016–2022. All rights reserved.