Class BuildStartContextImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.build.steps.BuildStartContextBase
-
- jetbrains.buildServer.serverSide.impl.build.steps.BuildStartContextImpl
-
- All Implemented Interfaces:
BuildStartContext
,SBuildStepsCollection
public class BuildStartContextImpl extends BuildStartContextBase implements BuildStartContext
- Author:
- Eugene Petrenko (eugene.petrenko@jetbrains.com) 06.10.10 14:19
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.serverSide.impl.build.steps.BuildStartContextBase
ACCEPT_ALL_FILTER, ENABLED_FILTER
-
-
Constructor Summary
Constructors Constructor Description BuildStartContextImpl(RunTypesProvider registry, SRunningBuild build, Map<String,String> buildParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSharedParameter(String key, String value)
Adds a build parameter which should be available to all of the steps.SRunningBuild
getBuild()
Collection<? extends SRunnerContext>
getRunnerContexts()
Map<String,String>
getSharedParameters()
Returns the map of build parameters shared among all of the steps.protected StepsFactoryImpl
getStepsFactory()
-
Methods inherited from class jetbrains.buildServer.serverSide.impl.build.steps.BuildStartContextBase
getAllRunnerContexts, getBuildRunners, getEnabledBuildRunners, getInvalidProperties, getRootSteps, setSteps, setSteps
-
-
-
-
Constructor Detail
-
BuildStartContextImpl
public BuildStartContextImpl(@NotNull RunTypesProvider registry, @NotNull SRunningBuild build, @NotNull Map<String,String> buildParameters)
-
-
Method Detail
-
getBuild
@NotNull public SRunningBuild getBuild()
- Specified by:
getBuild
in interfaceBuildStartContext
- Returns:
- running build that will be sent to a build agent
-
getSharedParameters
@NotNull public Map<String,String> getSharedParameters()
Description copied from interface:BuildStartContext
Returns the map of build parameters shared among all of the steps. UseConstants.SYSTEM_PREFIX
for system properties andConstants.ENV_PREFIX
for environment variables. Parameters without these prefixes are treated as configuration parameters.- Specified by:
getSharedParameters
in interfaceBuildStartContext
- Returns:
- shared parameters readonly map
-
addSharedParameter
public void addSharedParameter(@NotNull String key, @NotNull String value)
Description copied from interface:BuildStartContext
Adds a build parameter which should be available to all of the steps. UseConstants.SYSTEM_PREFIX
for system properties andConstants.ENV_PREFIX
for environment variables. Parameters without prefix are configuration parameters- Specified by:
addSharedParameter
in interfaceBuildStartContext
- Parameters:
key
- keyvalue
- value
-
getRunnerContexts
@NotNull public Collection<? extends SRunnerContext> getRunnerContexts()
- Specified by:
getRunnerContexts
in interfaceBuildStartContext
- Returns:
- unordered collection of build runner contexts
-
getStepsFactory
@NotNull protected StepsFactoryImpl getStepsFactory()
- Specified by:
getStepsFactory
in classBuildStartContextBase
-
-