public interface BuildAgentConfiguration
Modifier and Type | Method and Description |
---|---|
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)
|
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.io.File |
getAgentPluginsDirectory() |
java.io.File |
getAgentTempDirectory()
Deprecated.
|
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.
|
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.
|
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.
|
java.lang.String |
getPingCode()
Returns the code to be returned from the ping method
|
int |
getServerConnectionTimeout()
Returns connection timeout in seconds.
|
java.lang.String |
getServerUrl()
Returns server URL
|
java.io.File |
getSystemDirectory()
Returns path to a folder containing all system caches.
|
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
|
boolean |
removeConfigurationParameter(java.lang.String key)
Remove build agent configuration parameter added via @code(addConfigurationParameter) method.
|
java.lang.String getName()
int getOwnPort()
java.lang.String getOwnAddress()
java.lang.String getServerUrl()
@NotNull java.lang.String getAuthorizationToken()
@NotNull java.lang.String getPingCode()
@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 getSystemDirectory()
@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()
@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 valuevoid addSystemProperty(@NotNull java.lang.String key, @NotNull java.lang.String value)
Constants.SYSTEM_PREFIX
prefix
Modifications will be available for all builds on this agentkey
- property name (without the "system." prefix)value
- property valuevoid 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 agentkey
- name (without the "env." prefix), may be case sensitive or not depending on OSvalue
- valuevoid addConfigurationParameter(@NotNull java.lang.String key, @NotNull java.lang.String value)
key
- namevalue
- valueboolean removeConfigurationParameter(@NotNull java.lang.String key)
key
- name@NotNull BuildParametersMap getBuildParameters()
@NotNull java.util.Map<java.lang.String,java.lang.String> getConfigurationParameters()
@NotNull ValueResolver getParametersResolver()