Class ServerToolProviderAdapter

    • Constructor Detail

      • ServerToolProviderAdapter

        public ServerToolProviderAdapter()
    • Method Detail

      • unpackToolPackage

        public void unpackToolPackage​(@NotNull
                                      File toolPackage,
                                      @NotNull
                                      File targetDirectory)
                               throws ToolException
        Description copied from interface: ServerToolProvider
        Unpack valid tool package to the target directory. Form directory layout to use later on the agent.
        Specified by:
        unpackToolPackage in interface ServerToolProvider
        Parameters:
        toolPackage - file with the tool package
        targetDirectory - existing empty directory
        Throws:
        ToolException - if error occurs
      • getBundledToolVersions

        @NotNull
        public Collection<InstalledToolVersion> getBundledToolVersions()
        Description copied from interface: ServerToolProvider
        Get collection of bundled tool versions which are included into the TeamCity distribution.

        Note that some bundled tools are downloaded by TeamCity after the server startup. The list of such tools can be obtained via {@link this#getDownloadableBundledToolVersions()}

        Specified by:
        getBundledToolVersions in interface ServerToolProvider
        Returns:
        Collection of bundled tool versions that are included into the TeamCity distribution.
      • getDownloadableBundledToolVersions

        @NotNull
        public Collection<? extends ToolVersion> getDownloadableBundledToolVersions()
        Description copied from interface: ServerToolProvider
        Get a collection of bundled tool versions which are NOT included into the TeamCity disctibution and downloaded and installed after the first TeamCity server startup.

        Important: the implementations should ensure that no network requests or any other IO or CPU intensive operations are made. These versions should be cached and returned instantly.

        Specified by:
        getDownloadableBundledToolVersions in interface ServerToolProvider
        Returns:
        A collection of downloadable bundled tool versions wich are not included into the TeamCity distribution.
      • getDefaultBundledVersionId

        @Nullable
        public String getDefaultBundledVersionId()
        Description copied from interface: ServerToolProvider
        Get id of bundled version which should be used as default if default version is not specified explicitly.
        Specified by:
        getDefaultBundledVersionId in interface ServerToolProvider
        Returns:
        Default version id from set of bundled versions if exists or Null to use latest bundled version.