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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description HomeLocator()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static void
buildEnvVars(FilePath homeLocation, EnvVars env)
HomeLocatorDescriptor
getDescriptor()
abstract FilePath
locate(FilePath workspace)
Called during the build on the master to determine the location of the local SDK home location.
-
-
-
Method Detail
-
locate
public abstract FilePath locate(@Nonnull FilePath workspace)
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
public HomeLocatorDescriptor 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
-
-