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 voidaddConfigurationParameter(String key, String value)Adds build wide configuration parameter.voidaddEnvironmentVariable(String key, String value)Adds all-builds wide environment variable.voidaddSystemProperty(String key, String value)Adds all-builds wide system property.MutableAgentUnresolvedParametersgetAgentUnresolvedParameters()BuildParametersMapgetBuildParameters()Returns build parameters.Map<String,String>getConfigurationParameters()Returns configuration parameters of this buildValueResolvergetParametersResolver()booleanremoveConfigurationParameter(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:AgentContextAdds build wide configuration parameter. Modifications will be available for all builds on this agent- Specified by:
addConfigurationParameterin interfaceAgentContext- Parameters:
key- namevalue- value
-
removeConfigurationParameter
public boolean removeConfigurationParameter(@NotNull String key)Description copied from interface:AgentContextRemove build wide configuration parameter.- Specified by:
removeConfigurationParameterin interfaceAgentContext- Parameters:
key- name
-
addSystemProperty
public void addSystemProperty(@NotNull String key, @NotNull String value)Description copied from interface:AgentContextAdds all-builds wide system property. Creates build parameters withConstants.SYSTEM_PREFIXprefix Modifications will be available for all builds on this agent- Specified by:
addSystemPropertyin interfaceAgentContext
-
addEnvironmentVariable
public void addEnvironmentVariable(@NotNull String key, @NotNull String value)Description copied from interface:AgentContextAdds all-builds wide environment variable. Creates build parameters withConstants.ENV_PREFIXprefix Note, on Windows machines environment size can be limited. Modifications will be available for all builds on this agent- Specified by:
addEnvironmentVariablein interfaceAgentContext- Parameters:
key- name, may be case sensitive or not depending on OSvalue- value
-
getBuildParameters
@NotNull public BuildParametersMap getBuildParameters()
Description copied from interface:AgentContextReturns build parameters. Some of values may not be fully resolved.- Specified by:
getBuildParametersin interfaceAgentContext- Returns:
- build-wide build parameters
-
getAgentUnresolvedParameters
@NotNull public MutableAgentUnresolvedParameters getAgentUnresolvedParameters()
- Specified by:
getAgentUnresolvedParametersin interfaceAgentContextEx
-
getConfigurationParameters
@NotNull public Map<String,String> getConfigurationParameters()
Description copied from interface:AgentContextReturns configuration parameters of this build- Specified by:
getConfigurationParametersin interfaceAgentContext- Returns:
- unmodifiable configuration parameters map
-
getParametersResolver
@NotNull public ValueResolver getParametersResolver()
-
-