Class ReceivePackCommand

java.lang.Object
org.jenkinsci.main.modules.sshd.AsynchronousCommand
org.jenkinsci.plugins.gitserver.ssh.ReceivePackCommand
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 ReceivePackCommand extends org.jenkinsci.main.modules.sshd.AsynchronousCommand
Implements "git-receive-pack" in Jenkins SSH that receives uploaded commits from clients.
Author:
Kohsuke Kawaguchi
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReceivePackCommand(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

    • ReceivePackCommand

      public ReceivePackCommand(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