Class AgentCompatibility

    • Constructor Detail

      • AgentCompatibility

        public AgentCompatibility​(@NotNull
                                  AgentDescription agentDescription,
                                  @NotNull
                                  SBuildType buildType,
                                  boolean isActive)
        Creates new empty compatibility instance.
        Parameters:
        agentDescription - specified agent description.
        buildType - specified configuration.
      • AgentCompatibility

        public AgentCompatibility​(@NotNull
                                  CompatibilityResult compatibilityResult,
                                  @NotNull
                                  AgentDescription agentDescription,
                                  @NotNull
                                  SBuildType buildType,
                                  boolean isActive)
        Create a new compatibility instance copying the existence yet calculated compatibility result.
        Parameters:
        agentDescription - specified agent description.
        buildType - specified configuration.
    • Method Detail

      • getAgentDescription

        @NotNull
        public AgentDescription getAgentDescription()
        Specified agent description.
        Returns:
        the specified agent description.
      • getBuildType

        @NotNull
        public SBuildType getBuildType()
        Specified configuration.
        Returns:
        the specified configuration.
      • isActive

        public boolean isActive()
        Returns true if the specified agent (agent type) is in agent pool which is associated with the project of the specified build type
        Returns:
        see above
      • getIncompatibleRunner

        @Nullable
        public RunType getIncompatibleRunner()
        Description copied from interface: CompatibilityResult
        Returns incompatible runner (i.e. runner is defined in build configuration settings but does not exist on agent)
        Specified by:
        getIncompatibleRunner in interface CompatibilityResult
        Returns:
        see above
      • getMissedVcsPluginsOnAgent

        @NotNull
        public Map<String,​String> getMissedVcsPluginsOnAgent()
        Description copied from interface: CompatibilityResult
        Returns map of VCS plugins required by build configuration which are not installed on the agent. The key in the map is plugin name, the value is display name of the plugin (suitable for showing in the UI)
        Specified by:
        getMissedVcsPluginsOnAgent in interface CompatibilityResult
        Returns:
        see above
      • getUndefinedParameters

        @NotNull
        public Map<String,​String> getUndefinedParameters()
        Description copied from interface: CompatibilityResult
        Returns map of undefined parameters (parameter references without actual values, i.e. so called implicit requirements).
        Specified by:
        getUndefinedParameters in interface CompatibilityResult
        Returns:
        map of parameter name to parameter origin - short description where reference to parameter is defined