Class UploadPackCommand

java.lang.Object
org.jenkinsci.main.modules.sshd.AsynchronousCommand
org.jenkinsci.plugins.gitserver.ssh.UploadPackCommand
All Implemented Interfaces:
Runnable, org.apache.sshd.server.command.Command, org.apache.sshd.server.command.CommandDirectErrorStreamAware, org.apache.sshd.server.command.CommandDirectInputStreamAware, org.apache.sshd.server.command.CommandDirectOutputStreamAware, org.apache.sshd.server.command.CommandDirectStreamsAware, org.apache.sshd.server.command.CommandLifecycle, org.apache.sshd.server.session.ServerSessionAware

public class UploadPackCommand extends org.jenkinsci.main.modules.sshd.AsynchronousCommand
Implements "git-upload-pack" in Jenkins SSH that lets clients download commits from us.
Author:
Kohsuke Kawaguchi
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    UploadPackCommand(org.jenkinsci.main.modules.sshd.SshCommandFactory.CommandLine cmdLine)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected int
     
    protected final int
     

    Methods inherited from class org.jenkinsci.main.modules.sshd.AsynchronousCommand

    destroy, destroy, getCmdLine, getCurrentUser, getEnvironment, getErrorStream, getInputStream, getOutputStream, getSession, run, setErrorStream, setExitCallback, setInputStream, setOutputStream, setSession, start, start

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • repoName

      protected String repoName
  • Constructor Details

    • UploadPackCommand

      public UploadPackCommand(org.jenkinsci.main.modules.sshd.SshCommandFactory.CommandLine cmdLine)
  • Method Details

    • doRun

      protected int doRun() throws Exception
      Throws:
      Exception
    • runCommand

      protected final int runCommand() throws Exception
      Specified by:
      runCommand in class org.jenkinsci.main.modules.sshd.AsynchronousCommand
      Throws:
      Exception