|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BuildAgentConfiguration
Represents configuration of build agent (loaded from buildAgent.properties file)
| Method Summary | |
|---|---|
void |
addAlternativeAgentAddress(java.lang.String address)
Adds alternative agent address that may be used by the server to communicate with agent. |
void |
addConfigurationParameter(java.lang.String key,
java.lang.String value)
Adds all-builds wide configuration parameter. |
void |
addCustomProperty(java.lang.String name,
java.lang.String value)
Deprecated. use addConfigurationParameter(String, String),
addEnvironmentVariable(String, String) or
addSystemProperty(String, String) |
void |
addEnvironmentVariable(java.lang.String key,
java.lang.String value)
Adds all-builds wide environment variable. |
void |
addSystemProperty(java.lang.String key,
java.lang.String value)
Adds all-builds wide system property. |
java.io.File |
getAgentHomeDirectory()
|
java.io.File |
getAgentLibDirectory()
|
java.io.File |
getAgentLogsDirectory()
Returns directory containing agent log files |
java.util.Map<java.lang.String,java.lang.String> |
getAgentParameters()
Deprecated. use getBuildParameters() or getConfigurationParameters() to get resolved parameters map |
java.io.File |
getAgentPluginsDirectory()
|
java.io.File |
getAgentTempDirectory()
Deprecated. use AgentBuildSettings.getAgentTempDirectory() |
java.io.File |
getAgentToolsDirectory()
Provides path to tools folder on build agent. |
java.io.File |
getAgentUpdateDirectory()
|
java.lang.String |
getAuthorizationToken()
Returns agent authorization token which should be used to authorize build agent |
BuildParametersMap |
getBuildParameters()
Returns build parameters. |
java.io.File |
getBuildTempDirectory()
Deprecated. use AgentBuildSettings.getBuildTempDirectory() |
java.io.File |
getCacheDirectory(java.lang.String key)
Returns path to a folder under agent's system directory by a key. |
java.util.Map<java.lang.String,java.lang.String> |
getConfigurationParameters()
Returns configuration parameters of this build |
java.util.Map<java.lang.String,java.lang.String> |
getCustomProperties()
Deprecated. use getBuildParameters() or getConfigurationParameters() |
java.lang.String |
getEnv(java.lang.String key)
Deprecated. use getBuildParameters() -> BuildParametersMap.getEnvironmentVariables() |
java.lang.String |
getName()
Returns name of the agent |
java.lang.String |
getOwnAddress()
Returns IP address where agent accepts commands from the server |
int |
getOwnPort()
Returns port where agent accepts commands from the server |
ValueResolver |
getParametersResolver()
Creates value resolver for parameters resolution in strings. |
int |
getServerConnectionTimeout()
Returns connection timeout in seconds. |
java.lang.String |
getServerUrl()
Returns server URL |
BuildAgentSystemInfo |
getSystemInfo()
Returns agent jvm(system) information |
java.io.File |
getTempDirectory()
Returns path to temp directory: parent folder of agent temp directory and build temp directory By default it returns INSTALL_DIR/temp, but that may be changes in buildAgent.properties file. |
java.io.File |
getWorkDirectory()
Returns path to AGENT_INSTALL_DIR/work directory |
| Method Detail |
|---|
java.lang.String getName()
int getOwnPort()
java.lang.String getOwnAddress()
java.lang.String getServerUrl()
@NotNull java.lang.String getAuthorizationToken()
@NotNull java.io.File getWorkDirectory()
@NotNull java.io.File getBuildTempDirectory()
AgentBuildSettings.getBuildTempDirectory()
getTempDirectory().
This folder is cleaned before build is started.
@Deprecated @NotNull java.io.File getAgentTempDirectory()
AgentBuildSettings.getAgentTempDirectory()
getTempDirectory().
This folder is cleaned before build is started.
@NotNull java.io.File getAgentToolsDirectory()
@NotNull
java.io.File getCacheDirectory(@NotNull
java.lang.String key)
key - plugin unique key
@NotNull java.io.File getTempDirectory()
@NotNull java.io.File getAgentLibDirectory()
@NotNull java.io.File getAgentPluginsDirectory()
@NotNull java.io.File getAgentUpdateDirectory()
@NotNull java.io.File getAgentHomeDirectory()
@NotNull java.io.File getAgentLogsDirectory()
@NotNull BuildAgentSystemInfo getSystemInfo()
int getServerConnectionTimeout()
void addAlternativeAgentAddress(@NotNull
java.lang.String address)
address - ip address@NotNull @Deprecated java.util.Map<java.lang.String,java.lang.String> getCustomProperties()
getBuildParameters() or getConfigurationParameters()
@NotNull @Deprecated java.util.Map<java.lang.String,java.lang.String> getAgentParameters()
getBuildParameters() or getConfigurationParameters() to get resolved parameters map
@Deprecated
void addCustomProperty(@NotNull
java.lang.String name,
@NotNull
java.lang.String value)
addConfigurationParameter(String, String),
addEnvironmentVariable(String, String) or
addSystemProperty(String, String)
name - property namevalue - property value
@Nullable
@Deprecated
java.lang.String getEnv(@NotNull
java.lang.String key)
getBuildParameters() -> BuildParametersMap.getEnvironmentVariables()
key - name of environment variable
void addSystemProperty(@NotNull
java.lang.String key,
@NotNull
java.lang.String value)
Constants.SYSTEM_PREFIX prefix
Modifications will be available for all builds on this agent
key - property namevalue - property value
void addEnvironmentVariable(@NotNull
java.lang.String key,
@NotNull
java.lang.String value)
Constants.ENV_PREFIX
prefix
Note, on Windows machines environment size can be limited.
Modifications will be available for all builds on this agent
key - name, may be case sensitive or not depending on OSvalue - value
void addConfigurationParameter(@NotNull
java.lang.String key,
@NotNull
java.lang.String value)
key - namevalue - value@NotNull BuildParametersMap getBuildParameters()
@NotNull java.util.Map<java.lang.String,java.lang.String> getConfigurationParameters()
@NotNull ValueResolver getParametersResolver()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||