Class TRFProjectAction

    • Constructor Detail

      • TRFProjectAction

        public TRFProjectAction​(boolean projectLevel)
        Instantiates a new TRFProjectAction.
        Parameters:
        projectLevel - specifies whether archiving is restricted to project level only
    • Method Detail

      • getLastBuildAction

        @CheckForNull
        public TRFBuildAction getLastBuildAction​(org.kohsuke.stapler.StaplerRequest req)
        Returns the TRFBuildAction in the last build that have artifact documents.

        Resolves the owner by StaplerRequest.findAncestorObject(Class).

        Parameters:
        req - the StaplerRequest used for access this action
        Returns:
        the last TRFBuildAction or null if no proper build exists
      • getDynamic

        public TRFReport getDynamic​(String token,
                                    org.kohsuke.stapler.StaplerRequest req)
        Returns TRFReport specified by the URL.

        Delegates to the last TRFBuildAction.

        Parameters:
        token - the URL token
        req - the StaplerRequest used for access this action
        Returns:
        the requested TRFReport or null if no proper report exists
      • getDisplayName

        public String getDisplayName()