Interface BuildServer

    • Method Detail

      • getResponsibilityIds

        List<String> getResponsibilityIds​(long userId)
        Returns all configurations specified user is currently responsible for.
        Parameters:
        userId - TeamCity user unique identifier.
        Returns:
        list of configuration ids (buildTypeIds) the user is responsible for.
      • fetchData

        byte[] fetchData​(long userId,
                         long buildId,
                         String sourceId,
                         String whatToFetch)
        Get custom data provided by some data provider. Data providers are implementations of jetbrains.buildServer.serverSide.DataFetcher interfaces, which are registered on the server side using jetbrains.buildServer.serverSide.SBuildServer#registerExtension method.
        Parameters:
        userId - Id of user who tries to fetch the data from the server.
        buildId - buildId parameter, which is passed to the fetchData method of DataFetcher interface implementation.
        sourceId - source identifier, which was used while DataFetcher registration using SBuildServer#registerExtension method.
        whatToFetch - custom parameter, which is passed to the fetchData method of DataFetcher interface implementation.
        Returns:
        data, returned by the corresponding implementation of DataFetcher interface, if such DataFetcher was registered; empty array if no corresponding DataFetcher found.