Class AgentContextImpl
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.config.AgentContextImpl
-
- All Implemented Interfaces:
AgentContext
,AgentContextEx
public class AgentContextImpl extends Object implements AgentContextEx
- Author:
- Eugene Petrenko Created: 08.07.2010 18:26:58
-
-
Constructor Summary
Constructors Constructor Description AgentContextImpl(AgentUnresolvedParametersEx parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConfigurationParameter(String key, String value)
Adds build wide configuration parameter.void
addEnvironmentVariable(String key, String value)
Adds all-builds wide environment variable.void
addSystemProperty(String key, String value)
Adds all-builds wide system property.MutableAgentUnresolvedParameters
getAgentUnresolvedParameters()
BuildParametersMap
getBuildParameters()
Returns build parameters.Map<String,String>
getConfigurationParameters()
Returns configuration parameters of this buildValueResolver
getParametersResolver()
boolean
removeConfigurationParameter(String key)
Remove build wide configuration parameter.
-
-
-
Constructor Detail
-
AgentContextImpl
public AgentContextImpl(@NotNull AgentUnresolvedParametersEx parameters)
-
-
Method Detail
-
addConfigurationParameter
public void addConfigurationParameter(@NotNull String key, @NotNull String value)
Description copied from interface:AgentContext
Adds build wide configuration parameter. Modifications will be available for all builds on this agent- Specified by:
addConfigurationParameter
in interfaceAgentContext
- Parameters:
key
- namevalue
- value
-
removeConfigurationParameter
public boolean removeConfigurationParameter(@NotNull String key)
Description copied from interface:AgentContext
Remove build wide configuration parameter.- Specified by:
removeConfigurationParameter
in interfaceAgentContext
- Parameters:
key
- name
-
addSystemProperty
public void addSystemProperty(@NotNull String key, @NotNull String value)
Description copied from interface:AgentContext
Adds all-builds wide system property. Creates build parameters withConstants.SYSTEM_PREFIX
prefix Modifications will be available for all builds on this agent- Specified by:
addSystemProperty
in interfaceAgentContext
-
addEnvironmentVariable
public void addEnvironmentVariable(@NotNull String key, @NotNull String value)
Description copied from interface:AgentContext
Adds all-builds wide environment variable. Creates build parameters withConstants.ENV_PREFIX
prefix Note, on Windows machines environment size can be limited. Modifications will be available for all builds on this agent- Specified by:
addEnvironmentVariable
in interfaceAgentContext
- Parameters:
key
- name, may be case sensitive or not depending on OSvalue
- value
-
getBuildParameters
@NotNull public BuildParametersMap getBuildParameters()
Description copied from interface:AgentContext
Returns build parameters. Some of values may not be fully resolved.- Specified by:
getBuildParameters
in interfaceAgentContext
- Returns:
- build-wide build parameters
-
getAgentUnresolvedParameters
@NotNull public MutableAgentUnresolvedParameters getAgentUnresolvedParameters()
- Specified by:
getAgentUnresolvedParameters
in interfaceAgentContextEx
-
getConfigurationParameters
@NotNull public Map<String,String> getConfigurationParameters()
Description copied from interface:AgentContext
Returns configuration parameters of this build- Specified by:
getConfigurationParameters
in interfaceAgentContext
- Returns:
- unmodifiable configuration parameters map
-
getParametersResolver
@NotNull public ValueResolver getParametersResolver()
-
-