public abstract class GlobalSettingsProvider extends AbstractDescribableImpl<GlobalSettingsProvider> implements ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
GlobalSettingsProvider() |
Modifier and Type | Method and Description |
---|---|
static FilePath |
getSettingsFilePath(GlobalSettingsProvider settings,
AbstractBuild<?,?> build,
TaskListener listener)
Convenience method handling all
null checks. |
static String |
getSettingsRemotePath(GlobalSettingsProvider provider,
AbstractBuild<?,?> build,
TaskListener listener)
Convenience method handling all
null checks. |
static GlobalSettingsProvider |
parseSettingsProvider(org.kohsuke.stapler.StaplerRequest req) |
abstract FilePath |
supplySettings(AbstractBuild<?,?> build,
TaskListener listener)
configure maven launcher argument list with adequate settings path
|
getDescriptor
public abstract FilePath supplySettings(AbstractBuild<?,?> build, TaskListener listener)
build
- the build to provide the settings fornull
if no settings will be provided.public static GlobalSettingsProvider parseSettingsProvider(org.kohsuke.stapler.StaplerRequest req) throws Descriptor.FormException, javax.servlet.ServletException
Descriptor.FormException
javax.servlet.ServletException
public static FilePath getSettingsFilePath(GlobalSettingsProvider settings, AbstractBuild<?,?> build, TaskListener listener)
null
checks. Provides the path on the (possible) remote settings file.settings
- the provider to be usedbuild
- the active buildlistener
- the listener of the current buildpublic static String getSettingsRemotePath(GlobalSettingsProvider provider, AbstractBuild<?,?> build, TaskListener listener)
null
checks. Provides the path on the (possible) remote settings file.provider
- the provider to be usedbuild
- the active buildlistener
- the listener of the current buildCopyright © 2004–2021. All rights reserved.