Class PruneStaleBranch

    • Constructor Detail

      • PruneStaleBranch

        @DataBoundConstructor
        public PruneStaleBranch()
    • Method Detail

      • decorateFetchCommand

        @Deprecated
        public void decorateFetchCommand​(GitSCM scm,
                                         org.jenkinsci.plugins.gitclient.GitClient git,
                                         TaskListener listener,
                                         org.jenkinsci.plugins.gitclient.FetchCommand cmd)
                                  throws IOException,
                                         InterruptedException,
                                         hudson.plugins.git.GitException
        Deprecated.
        Called before a FetchCommand is executed to allow extensions to alter its behaviour.
        Overrides:
        decorateFetchCommand in class GitSCMExtension
        Parameters:
        scm - GitSCM object
        git - GitClient
        listener - build log
        cmd - fetch command to be decorated
        Throws:
        IOException - on input or output error
        InterruptedException - when interrupted
        hudson.plugins.git.GitException - on git error
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object