Package hudson.scm

Class AbstractScmTagAction

    • Constructor Detail

      • AbstractScmTagAction

        protected AbstractScmTagAction​(Run<?,​?> run)
        Since:
        1.568
    • Method Detail

      • getUrlName

        public final String getUrlName()
        Description copied from interface: Action
        Gets the URL path name.

        For example, if this method returns "xyz", and if the parent object (that this action is associated with) is bound to /foo/bar/zot, then this action object will be exposed to /foo/bar/zot/xyz.

        This method should return a string that's unique among other Actions.

        The returned string can be an absolute URL, like "http://www.sun.com/", which is useful for directly connecting to external systems.

        If the returned string starts with '/', like '/foo', then it's assumed to be relative to the context path of the Jenkins webapp.

        Specified by:
        getUrlName in interface Action
        Returns:
        null if this action object doesn't need to be bound to web (when you do that, be sure to also return null from Action.getIconFileName().
        See Also:
        Functions.getActionUrl(String, Action)
      • getRun

        public Run<?,​?> getRun()
        Since:
        1.568
      • getTooltip

        public String getTooltip()
        This message is shown as the tool tip of the build badge icon.
      • isTagged

        public abstract boolean isTagged()
        Returns true if the build is tagged already.
      • doIndex

        public void doIndex​(org.kohsuke.stapler.StaplerRequest req,
                            org.kohsuke.stapler.StaplerResponse rsp)
                     throws IOException,
                            javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • chooseAction

        protected String chooseAction()