Package hudson.plugins.sauce_ondemand
Class BrowserAxis
java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.matrix.Axis>
hudson.matrix.Axis
hudson.plugins.sauce_ondemand.BrowserAxis
- All Implemented Interfaces:
ExtensionPoint,Describable<hudson.matrix.Axis>,Comparable<hudson.matrix.Axis>,Iterable<String>
- Direct Known Subclasses:
AppiumAxis,WebDriverAxis
public abstract class BrowserAxis
extends hudson.matrix.Axis
Axis that allows Sauce browsers to be selected for multi-configuration projects.- Author:
- Kohsuke Kawaguchi, Ross Rowe
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final com.saucelabs.ci.BrowserFactoryHandles the retrieval of browsers from Sauce Labs.Fields inherited from class hudson.matrix.Axis
name, values -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBuildVariable(String value, Map<String, String> map) Adds the browser URI to the environment map.protected abstract com.saucelabs.ci.BrowsergetBrowserForKey(String value) booleanrebuild(hudson.matrix.MatrixBuild.MatrixBuildExecution context) Methods inherited from class hudson.matrix.Axis
all, compareTo, equals, getDescriptor, getName, getValues, getValueString, hashCode, indexOf, isSystem, iterator, parsePrefixed, readResolve, size, toString, valueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
BROWSER_FACTORY
protected static final com.saucelabs.ci.BrowserFactory BROWSER_FACTORYHandles the retrieval of browsers from Sauce Labs.
-
-
Constructor Details
-
BrowserAxis
-
-
Method Details
-
hasValue
-
rebuild
- Overrides:
rebuildin classhudson.matrix.Axis
-
addBuildVariable
Adds the browser URI to the environment map. Will override any values set inSauceOnDemandBuildWrapper.setUp(hudson.model.AbstractBuild, hudson.Launcher, hudson.model.BuildListener)- Overrides:
addBuildVariablein classhudson.matrix.Axis- Parameters:
value- Browser keymap- FIXME ??
-
getBrowserForKey
- Parameters:
value- Browser Key- Returns:
- A Browser for a given key
-