Class ArtifactsDocsLinksActionBase

    • Constructor Detail

      • ArtifactsDocsLinksActionBase

        public ArtifactsDocsLinksActionBase()
    • Method Detail

      • getOwner

        public Object getOwner​(org.kohsuke.stapler.StaplerRequest req)
        Returns the container of this action.
        Parameters:
        req - StaplerRequest used for access this action.
        Returns:
        AbstractProject or AbstractBuild.
      • getProject

        public AbstractProject<?,​?> getProject​(org.kohsuke.stapler.StaplerRequest req)
        Parameters:
        req -
        Returns:
        the project containing this action
      • getBuild

        public AbstractBuild<?,​?> getBuild​(org.kohsuke.stapler.StaplerRequest req)
        Returns the build that have artifacts this action handles. If called in a project context, returns the last build that contains artifact documents.
        Parameters:
        req -
        Returns:
        the build with document artifacts to handle.
      • getLastDocumentedBuild

        public AbstractBuild<?,​?> getLastDocumentedBuild​(AbstractProject<?,​?> project)
        Returns the last build with artifact documents in a project.
        Parameters:
        project -
        Returns:
        a build with artifact documents.
      • getUrlName

        public String getUrlName()
        Returns an URL to access this action. This URL is relative from the owner object.
        Specified by:
        getUrlName in interface Action
        Returns:
        See Also:
        Action.getUrlName()