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 StringAGENT_BENCHMARK_ENABLED_PROPERTYstatic StringAGENT_BENCHMARK_PROPERTY_NAMEstatic StringAGENT_BUILD_PARAMS_FILE_ENVstatic StringAGENT_BUILD_PARAMS_FILE_PROPThis property will contain the path to properties file containing all build parameters which starts with 'system.' prefix.static StringAGENT_CLASSPATHstatic StringAGENT_CONFIGURATION_PARAMS_FILE_PROPThis property will contain the path to properties file containing all configuration properties Those properties are also stored to xml properties file.static StringAGENT_HOME_DIRstatic StringAGENT_NAMEstatic StringAGENT_PRIORITY_PARAMETERThis property will contain the agent's priority.static StringAGENT_RUNNER_PARAMS_FILE_PROPThis 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_PARAMSstatic StringAGENT_WORK_DIRstatic StringANT_TASK_EXTENSIONSstatic StringARTIFACTS_PATHSstatic StringBUILD_CHECKOUT_DIRstatic StringBUILD_IDstatic StringBUILD_TEMP_DIRstatic StringBUILD_TYPE_IDstatic StringBUILD_WORKING_DIRstatic StringCHANGED_FILES_FILE_PARAMContains path to a file where information about changed files in the build is stored.static intDEFAULT_AGENT_PRIORITYDefault agent priority.static StringDEFAULT_CHECKOUT_DIR_PARAM_NAMEstatic StringENSURE_FREE_SPACE_KEYAgent configuration parameter to ensure free disk space before the build startstatic StringENSURE_FREE_SYSTEM_SPACE_KEYstatic StringENSURE_FREE_TEMP_SPACE_KEYstatic StringFAIL_EXIT_CODEstatic StringFAIL_ON_CLEAN_CHECKOUTThis 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 StringFLOW_ID_ENVstatic StringFLOW_ID_PROPstatic StringHOSTNAMEstatic StringJAVA_IO_TMPDIR_SYSTEM_PROPERTYstatic intMAX_AGENT_PRIORITYMaximum agent priority.static intMIN_AGENT_PRIORITYMinimum agent priority.static StringOWN_PORTstatic StringPARENT_FLOW_ID_ENVstatic StringPROCESSORS_COUNT_KEYstatic String[]PROPERTIESstatic StringRELY_ON_VCS_TO_RESTORE_FROM_ERRORSWhen 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 StringRUNTIME_PROPS_FILEThis property contains path to properties file with runtime settings (extensions and their classpath).static StringSTARTING_CLOUD_INSTANCE_IDA temporary id of a starting cloud instancestatic StringTEAMCITY_AGENT_HOMEstatic StringTEAMCITY_AGENT_NAMEstatic StringTEAMCITY_AGENT_OWN_PORTstatic StringTEAMCITY_AGENT_TOOLSstatic StringTEAMCITY_AGENT_WORKstatic StringTEAMCITY_BUILD_STEP_NAMEConfig parameter that contains current step name in format: AA (runType)static StringTEAMCITY_DEFAULT_PROPERTIESContains name of the optional properties file which is used to load build properties.static StringTEAMCITY_INFO_XMLstatic StringTEAMCITY_INTERNAL_PARAMETER_PREFIXSpecial prefix for internal configuration parameters (see TW-59896)static StringTEAMCITY_SERVER_URL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetBuildId()static StringgetBuildWorkingDir(Map runnerParameters)static StringgetCheckoutDir(Map runParameters)static intgetOwnPort()
-
-
-
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
-
-