Package jetbrains.buildServer.agent
Class AgentRuntimeProperties
- java.lang.Object
-
- jetbrains.buildServer.agent.AgentRuntimeProperties
-
public class AgentRuntimeProperties extends Object
- See Also:
ServerProvidedProperties
-
-
Field Summary
Fields Modifier and Type Field Description static String
AGENT_BENCHMARK_ENABLED_PROPERTY
static String
AGENT_BENCHMARK_PROPERTY_NAME
static String
AGENT_BUILD_PARAMS_FILE_ENV
static String
AGENT_BUILD_PARAMS_FILE_PROP
This property will contain the path to properties file containing all build parameters which starts with 'system.' prefix.static String
AGENT_CLASSPATH
static String
AGENT_CONFIGURATION_PARAMS_FILE_PROP
This property will contain the path to properties file containing all configuration properties Those properties are also stored to xml properties file.static String
AGENT_HOME_DIR
static String
AGENT_NAME
static String
AGENT_PRIORITY_PARAMETER
This property will contain the agent's priority.static String
AGENT_RUNNER_PARAMS_FILE_PROP
This property will contain the path to properties file containing all runner parameters Those properties are also stored to xml properties file.static String[]
AGENT_SPECIFIC_REFERABLE_PARAMS
static String
AGENT_WORK_DIR
static String
ANT_TASK_EXTENSIONS
static String
ARTIFACTS_PATHS
static String
BUILD_CHECKOUT_DIR
static String
BUILD_ID
static String
BUILD_TEMP_DIR
static String
BUILD_TYPE_ID
static String
BUILD_WORKING_DIR
static String
CHANGED_FILES_FILE_PARAM
Contains path to a file where information about changed files in the build is stored.static int
DEFAULT_AGENT_PRIORITY
Default agent priority.static String
DEFAULT_CHECKOUT_DIR_PARAM_NAME
static String
ENSURE_FREE_SPACE_KEY
Agent configuration parameter to ensure free disk space before the build startstatic String
ENSURE_FREE_SYSTEM_SPACE_KEY
static String
ENSURE_FREE_TEMP_SPACE_KEY
static String
FAIL_EXIT_CODE
static String
FAIL_ON_CLEAN_CHECKOUT
This configuration parameter, when set to true, ensures that on dirty copy for a build, or on VcsSettings change, clean checkout won't be performed and the build will be failed instead.static String
FLOW_ID_ENV
static String
FLOW_ID_PROP
static String
HOSTNAME
static String
JAVA_IO_TMPDIR_SYSTEM_PROPERTY
static int
MAX_AGENT_PRIORITY
Maximum agent priority.static int
MIN_AGENT_PRIORITY
Minimum agent priority.static String
OWN_PORT
static String
PARENT_FLOW_ID_ENV
static String
PROCESSORS_COUNT_KEY
static String[]
PROPERTIES
static String
RELY_ON_VCS_TO_RESTORE_FROM_ERRORS
When this configuration parameter is set, TeamCity won't mark checkout directory as dirty when agent-side checkout is used and a error has happened during such a checkout.static String
RUNTIME_PROPS_FILE
This property contains path to properties file with runtime settings (extensions and their classpath).static String
STARTING_CLOUD_INSTANCE_ID
A temporary id of a starting cloud instancestatic String
TEAMCITY_AGENT_HOME
static String
TEAMCITY_AGENT_NAME
static String
TEAMCITY_AGENT_OWN_PORT
static String
TEAMCITY_AGENT_TOOLS
static String
TEAMCITY_AGENT_WORK
static String
TEAMCITY_BUILD_STEP_NAME
Config parameter that contains current step name in format: AA (runType)static String
TEAMCITY_DEFAULT_PROPERTIES
Contains name of the optional properties file which is used to load build properties.static String
TEAMCITY_INFO_XML
static String
TEAMCITY_INTERNAL_PARAMETER_PREFIX
Special prefix for internal configuration parameters (see TW-59896)static String
TEAMCITY_SERVER_URL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getBuildId()
static String
getBuildWorkingDir(Map runnerParameters)
static String
getCheckoutDir(Map runParameters)
static int
getOwnPort()
-
-
-
Field Detail
-
BUILD_ID
public static final String BUILD_ID
- See Also:
- Constant Field Values
-
BUILD_TYPE_ID
public static final String BUILD_TYPE_ID
- See Also:
- Constant Field Values
-
OWN_PORT
public static final String OWN_PORT
- See Also:
- Constant Field Values
-
AGENT_CLASSPATH
public static final String AGENT_CLASSPATH
- See Also:
- Constant Field Values
-
ANT_TASK_EXTENSIONS
public static final String ANT_TASK_EXTENSIONS
- See Also:
- Constant Field Values
-
RUNTIME_PROPS_FILE
public static final String RUNTIME_PROPS_FILE
This property contains path to properties file with runtime settings (extensions and their classpath). Currently AGENT_CLASSPATH & ANT_TASK_EXTENSIONS properties are stored there.- See Also:
- Constant Field Values
-
BUILD_CHECKOUT_DIR
public static final String BUILD_CHECKOUT_DIR
- See Also:
- Constant Field Values
-
DEFAULT_CHECKOUT_DIR_PARAM_NAME
public static final String DEFAULT_CHECKOUT_DIR_PARAM_NAME
- See Also:
- Constant Field Values
-
BUILD_WORKING_DIR
public static final String BUILD_WORKING_DIR
- See Also:
- Constant Field Values
-
BUILD_TEMP_DIR
public static final String BUILD_TEMP_DIR
- See Also:
- Constant Field Values
-
FAIL_EXIT_CODE
public static final String FAIL_EXIT_CODE
- See Also:
- Constant Field Values
-
HOSTNAME
public static final String HOSTNAME
- Since:
- 10.0
- See Also:
- Constant Field Values
-
RELY_ON_VCS_TO_RESTORE_FROM_ERRORS
public static final String RELY_ON_VCS_TO_RESTORE_FROM_ERRORS
When this configuration parameter is set, TeamCity won't mark checkout directory as dirty when agent-side checkout is used and a error has happened during such a checkout. I.e. in this case, it is up to VCS support to handle the problem with the checkout. See also: https://youtrack.jetbrains.com/issue/TW-41456- Since:
- 9.1.4, 10.0 enabled by default
- See Also:
- Constant Field Values
-
FAIL_ON_CLEAN_CHECKOUT
public static final String FAIL_ON_CLEAN_CHECKOUT
This configuration parameter, when set to true, ensures that on dirty copy for a build, or on VcsSettings change, clean checkout won't be performed and the build will be failed instead. If property is set to 'ignoreAndContinue', the problem with dirty copy is ignored and build continue as if everything is OK- Since:
- 10.0
- See Also:
- Issue TW-33168, Constant Field Values
-
AGENT_HOME_DIR
public static final String AGENT_HOME_DIR
- See Also:
- Constant Field Values
-
AGENT_WORK_DIR
public static final String AGENT_WORK_DIR
- See Also:
- Constant Field Values
-
AGENT_NAME
public static final String AGENT_NAME
- See Also:
- Constant Field Values
-
FLOW_ID_ENV
public static final String FLOW_ID_ENV
- See Also:
- Constant Field Values
-
FLOW_ID_PROP
public static final String FLOW_ID_PROP
- See Also:
- Constant Field Values
-
PARENT_FLOW_ID_ENV
public static final String PARENT_FLOW_ID_ENV
- See Also:
- Constant Field Values
-
TEAMCITY_INFO_XML
public static final String TEAMCITY_INFO_XML
- See Also:
- Constant Field Values
-
AGENT_BENCHMARK_ENABLED_PROPERTY
public static final String AGENT_BENCHMARK_ENABLED_PROPERTY
- See Also:
- Constant Field Values
-
AGENT_BENCHMARK_PROPERTY_NAME
public static final String AGENT_BENCHMARK_PROPERTY_NAME
- See Also:
- Constant Field Values
-
PROCESSORS_COUNT_KEY
public static final String PROCESSORS_COUNT_KEY
- See Also:
- Constant Field Values
-
JAVA_IO_TMPDIR_SYSTEM_PROPERTY
public static final String JAVA_IO_TMPDIR_SYSTEM_PROPERTY
- See Also:
- Constant Field Values
-
TEAMCITY_SERVER_URL
public static final String TEAMCITY_SERVER_URL
- See Also:
- Constant Field Values
-
TEAMCITY_AGENT_NAME
public static final String TEAMCITY_AGENT_NAME
- See Also:
- Constant Field Values
-
TEAMCITY_AGENT_HOME
public static final String TEAMCITY_AGENT_HOME
- See Also:
- Constant Field Values
-
TEAMCITY_AGENT_WORK
public static final String TEAMCITY_AGENT_WORK
- See Also:
- Constant Field Values
-
TEAMCITY_AGENT_TOOLS
public static final String TEAMCITY_AGENT_TOOLS
- See Also:
- Constant Field Values
-
TEAMCITY_AGENT_OWN_PORT
public static final String TEAMCITY_AGENT_OWN_PORT
- Since:
- 8.0
- See Also:
- Constant Field Values
-
TEAMCITY_BUILD_STEP_NAME
public static final String TEAMCITY_BUILD_STEP_NAME
Config parameter that contains current step name in format: AA (runType)- Since:
- 7.1
- See Also:
- Constant Field Values
-
AGENT_RUNNER_PARAMS_FILE_PROP
public static final String AGENT_RUNNER_PARAMS_FILE_PROP
This property will contain the path to properties file containing all runner parameters Those properties are also stored to xml properties file. To use it, append '.xml' to the end of returned path.- See Also:
- Constant Field Values
-
AGENT_CONFIGURATION_PARAMS_FILE_PROP
public static final String AGENT_CONFIGURATION_PARAMS_FILE_PROP
This property will contain the path to properties file containing all configuration properties Those properties are also stored to xml properties file. To use it, append '.xml' to the end of returned path.- See Also:
- Constant Field Values
-
AGENT_BUILD_PARAMS_FILE_PROP
public static final String AGENT_BUILD_PARAMS_FILE_PROP
This property will contain the path to properties file containing all build parameters which starts with 'system.' prefix. 'system.' prefix is omitted. Those properties are also stored to xml properties file. To use it, append '.xml' to the end of returned path.- See Also:
- Constant Field Values
-
AGENT_BUILD_PARAMS_FILE_ENV
public static final String AGENT_BUILD_PARAMS_FILE_ENV
- See Also:
- Constant Field Values
-
TEAMCITY_DEFAULT_PROPERTIES
public static final String TEAMCITY_DEFAULT_PROPERTIES
- Contains name of the optional properties file which is used to load build properties.
- Default name of the properties file in project root directory for the above.
- See Also:
- Constant Field Values
-
CHANGED_FILES_FILE_PARAM
public static final String CHANGED_FILES_FILE_PARAM
Contains path to a file where information about changed files in the build is stored. Read more about file format in our documentation.- See Also:
- Constant Field Values
-
AGENT_PRIORITY_PARAMETER
public static final String AGENT_PRIORITY_PARAMETER
This property will contain the agent's priority. 'priority' is optional and only affects the order in which the agents are placed in the "available agents" collection.Valid priority range is [MIN_INTEGER, MAX_INTEGER]. The higher the value, the higher the priority. DEFAULT_AGENT_PRIORITY - 0.
- Since:
- 2023.11
- See Also:
- Constant Field Values
-
DEFAULT_AGENT_PRIORITY
public static final int DEFAULT_AGENT_PRIORITY
Default agent priority. When AGENT_PRIORITY_PARAMETER is not set, this value is used.- See Also:
- Constant Field Values
-
MAX_AGENT_PRIORITY
public static final int MAX_AGENT_PRIORITY
Maximum agent priority.- Since:
- 2023.11
- See Also:
- Constant Field Values
-
MIN_AGENT_PRIORITY
public static final int MIN_AGENT_PRIORITY
Minimum agent priority.- Since:
- 2023.11
- See Also:
- Constant Field Values
-
TEAMCITY_INTERNAL_PARAMETER_PREFIX
public static final String TEAMCITY_INTERNAL_PARAMETER_PREFIX
Special prefix for internal configuration parameters (see TW-59896)- Since:
- 2019.1
- See Also:
- Constant Field Values
-
STARTING_CLOUD_INSTANCE_ID
public static final String STARTING_CLOUD_INSTANCE_ID
A temporary id of a starting cloud instance- See Also:
- Constant Field Values
-
PROPERTIES
public static final String[] PROPERTIES
-
AGENT_SPECIFIC_REFERABLE_PARAMS
public static final String[] AGENT_SPECIFIC_REFERABLE_PARAMS
-
ARTIFACTS_PATHS
public static final String ARTIFACTS_PATHS
- See Also:
- Constant Field Values
-
ENSURE_FREE_SPACE_KEY
public static final String ENSURE_FREE_SPACE_KEY
Agent configuration parameter to ensure free disk space before the build start- Since:
- 6.5
- See Also:
- Constant Field Values
-
ENSURE_FREE_TEMP_SPACE_KEY
public static final String ENSURE_FREE_TEMP_SPACE_KEY
- See Also:
- Constant Field Values
-
ENSURE_FREE_SYSTEM_SPACE_KEY
public static final String ENSURE_FREE_SYSTEM_SPACE_KEY
- See Also:
- Constant Field Values
-
-