Class HomeLocator
java.lang.Object
hudson.model.AbstractDescribableImpl<HomeLocator>
jenkins.plugin.android.emulator.sdk.home.HomeLocator
- All Implemented Interfaces:
ExtensionPoint
,Describable<HomeLocator>
,Serializable
- Direct Known Subclasses:
DefaultHomeLocator
,PerExecutorHomeLocator
,PerJobHomeLocator
public abstract class HomeLocator
extends AbstractDescribableImpl<HomeLocator>
implements ExtensionPoint, Serializable
Strategy pattern that decides the location of the SDK home location for a
build.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
buildEnvVars
(FilePath homeLocation, EnvVars env) abstract FilePath
Called during the build on the master to determine the location of the local SDK home location.
-
Constructor Details
-
HomeLocator
public HomeLocator()
-
-
Method Details
-
locate
Called during the build on the master to determine the location of the local SDK home location.- Parameters:
workspace
- the workspace file path locator- Returns:
- null to let SDK build tool uses its default location. Otherwise this must be located on the same node as described by this path.
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<HomeLocator>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<HomeLocator>
-
buildEnvVars
public static void buildEnvVars(@NonNull FilePath homeLocation, @CheckForNull EnvVars env) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-