|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–2021. All rights reserved.