Class CommandLineNodeConfig


  • public class CommandLineNodeConfig
    extends Object
    • Field Detail

      • TEAMCITY_NODE_CONFIG_FILE

        public static final String TEAMCITY_NODE_CONFIG_FILE
        Deprecated.
        to be removed soon

        This environment variable points to an XML file which contains a single element from nodes-config.xml

        If this variable is set and the file is readable, TeamCity will not read configuration of the current node from the nodes-config.xml file but will load the configuration of responsibilities from this file.

        Also, if the responsibilities of the node are loaded from TEAMCITY_NODE_CONFIG_FILE file, other nodes should not allow to edit its responsibilities via UI

        See Also:
        NodesConfigUtil, Constant Field Values
      • TEAMCITY_NODE_RESPONSIBILITIES_PROP

        public static final String TEAMCITY_NODE_RESPONSIBILITIES_PROP

        This system property may contain a comma-separated list of node responsibilities assigned to this node.

        If this variable is set, TeamCity will not read configuration of the current node from the nodes-config.xml file but will init the configuration of responsibilities from this variable.

        Since:
        2023.09
        See Also:
        NodesConfigUtil, Constant Field Values
    • Constructor Detail

      • CommandLineNodeConfig

        public CommandLineNodeConfig()
    • Method Detail

      • isEnabled

        public static boolean isEnabled()
      • getConfigurationDescription

        @NotNull
        public static String getConfigurationDescription()
        Returns:
        text description on how responsibilities are passed to the node or an empty string if the responsibilities were not passed