public abstract class SettingsProvider extends AbstractDescribableImpl<SettingsProvider> implements ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
SettingsProvider() |
Modifier and Type | Method and Description |
---|---|
static FilePath |
getSettingsFilePath(SettingsProvider settings,
AbstractBuild<?,?> build,
TaskListener listener)
Convenience method handling all
null checks. |
static String |
getSettingsRemotePath(SettingsProvider settings,
AbstractBuild<?,?> build,
TaskListener listener)
Convenience method handling all
null checks. |
static SettingsProvider |
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
- null
if no settings will be provided.public static SettingsProvider parseSettingsProvider(org.kohsuke.stapler.StaplerRequest req) throws Descriptor.FormException, javax.servlet.ServletException
Descriptor.FormException
javax.servlet.ServletException
public static FilePath getSettingsFilePath(SettingsProvider 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(SettingsProvider 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 buildCopyright © 2004–2021. All rights reserved.