Class CheckoutOption

    • Constructor Detail

      • CheckoutOption

        @DataBoundConstructor
        public CheckoutOption​(Integer timeout)
    • Method Detail

      • getTimeout

        public Integer getTimeout()
      • requiresWorkspaceForPolling

        public boolean requiresWorkspaceForPolling()
        Overrides:
        requiresWorkspaceForPolling in class GitSCMExtension
        Returns:
        true when this extension has a requirement to get a workspace during polling, typically as it has to check for incoming changes, not just remote HEAD.
      • decorateCheckoutCommand

        public void decorateCheckoutCommand​(GitSCM scm,
                                            Run<?,​?> build,
                                            org.jenkinsci.plugins.gitclient.GitClient git,
                                            TaskListener listener,
                                            org.jenkinsci.plugins.gitclient.CheckoutCommand cmd)
                                     throws IOException,
                                            InterruptedException,
                                            hudson.plugins.git.GitException
        Called before a CheckoutCommand is executed to allow extensions to alter its behaviour.
        Overrides:
        decorateCheckoutCommand in class GitSCMExtension
        Parameters:
        scm - GitSCM object
        build - run context
        git - GitClient
        listener - build log
        cmd - checkout command to be decorated
        Throws:
        IOException - on input or output error
        InterruptedException - when interrupted
        hudson.plugins.git.GitException - on git error
      • determineSupportForJGit

        public void determineSupportForJGit​(GitSCM scm,
                                            @NonNull
                                            org.jenkinsci.plugins.gitclient.UnsupportedCommand cmd)
        Description copied from class: GitSCMExtension
        Called when support of JGit for a particular or multiple extensions is to be determined
        Overrides:
        determineSupportForJGit in class GitSCMExtension
        Parameters:
        scm - GitSCM object
        cmd - UnsupportedCommand object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object