Interface SQueuedBuild

    • Method Detail

      • getCanRunOnAgents

        @NotNull
        List<SBuildAgent> getCanRunOnAgents()
        Returns agents this build can run on
        Returns:
        agents this build can run on
      • getBuildAgent

        @Deprecated
        @Nullable
        SBuildAgent getBuildAgent()
        Deprecated.
        use QueuedBuild.getAgentRestrictor(). Returns actual agent to which build configuration is scheduled or null if there is no such agent or build configuration is not scheduled to a specific agent.
        Returns:
        build agent to run build on or null
      • getBuildEstimates

        @Nullable
        BuildEstimates getBuildEstimates()
        Returns a BuildEstimates object describing the estimated values of the pending build. The returned time interval can be open, that is it doesn't contain the finish estimate (getEndPoint() returns null) in case of inability to estimate build duration. The time base for the time interval is the moment of invocation (with some accuracy).
        Returns:
        null if the times cannot be estimated or the build isn't in the queue.
      • removeFromQueue

        void removeFromQueue​(@Nullable
                             User user,
                             String comment)
        Removes this queued build from the build queue
        Parameters:
        user - user who initiated remove
        comment - comment
      • getRequestor

        @Deprecated
        @NotNull
        String getRequestor()
        Deprecated.
        Returns the reason, why configuration has been queued (for example, it might be trigger name, if configuration was triggered, of user name, it it was added to queue manually).
        Returns:
        string requestor.
      • getTriggeredBy

        TriggeredBy getTriggeredBy()
        Returns details about who and how added this build in queue.
        Returns:
        see above