Package jenkins.plugins.publish_over_ssh
Class BapSshClient
java.lang.Object
jenkins.plugins.publish_over.BPDefaultClient<BapSshTransfer>
jenkins.plugins.publish_over_ssh.BapSshClient
- All Implemented Interfaces:
 jenkins.plugins.publish_over.BPClient<BapSshTransfer>
- 
Constructor Summary
ConstructorsConstructorDescriptionBapSshClient(jenkins.plugins.publish_over.BPBuildInfo buildInfo, com.jcraft.jsch.Session session) BapSshClient(jenkins.plugins.publish_over.BPBuildInfo buildInfo, com.jcraft.jsch.Session session, boolean disableExec, boolean avoidSameFileUpload)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddSession(com.jcraft.jsch.Session session) Add a new session to the already known session chain (forwarding) The new session will become the current session.voidbeginTransfers(BapSshTransfer transfer) booleanchangeDirectory(String directory) voidvoidvoiddisconnectExecQuietly(com.jcraft.jsch.ChannelExec exec) voidvoidendTransfers(BapSshTransfer transfer) jenkins.plugins.publish_over.BPBuildInfocom.jcraft.jsch.SessionbooleanbooleanbooleanmakeDirectory(String directory) String[]parseAllCommands(BapSshTransfer transfer) String[]parseCommand(String command) voidsetSftp(com.jcraft.jsch.ChannelSftp sftp) voidtransferFile(BapSshTransfer bapSshTransfer, FilePath filePath, InputStream inputStream) Methods inherited from class jenkins.plugins.publish_over.BPDefaultClient
changeToInitialDirectory, getAbsoluteRemoteRoot, setAbsoluteRemoteRoot 
- 
Constructor Details
- 
BapSshClient
public BapSshClient(jenkins.plugins.publish_over.BPBuildInfo buildInfo, com.jcraft.jsch.Session session)  - 
BapSshClient
public BapSshClient(jenkins.plugins.publish_over.BPBuildInfo buildInfo, com.jcraft.jsch.Session session, boolean disableExec, boolean avoidSameFileUpload)  
 - 
 - 
Method Details
- 
addSession
public void addSession(com.jcraft.jsch.Session session) Add a new session to the already known session chain (forwarding) The new session will become the current session.- Parameters:
 session- new session to add
 - 
isDisableExec
public boolean isDisableExec() - 
isAvoidSameFileUpload
public boolean isAvoidSameFileUpload() - 
getBuildInfo
public jenkins.plugins.publish_over.BPBuildInfo getBuildInfo() - 
setSftp
public void setSftp(com.jcraft.jsch.ChannelSftp sftp)  - 
getSession
public com.jcraft.jsch.Session getSession() - 
beginTransfers
- Specified by:
 beginTransfersin interfacejenkins.plugins.publish_over.BPClient<BapSshTransfer>- Overrides:
 beginTransfersin classjenkins.plugins.publish_over.BPDefaultClient<BapSshTransfer>
 - 
changeDirectory
 - 
deleteTree
public void deleteTree() throws com.jcraft.jsch.SftpException- Specified by:
 deleteTreein interfacejenkins.plugins.publish_over.BPClient<BapSshTransfer>- Overrides:
 deleteTreein classjenkins.plugins.publish_over.BPDefaultClient<BapSshTransfer>- Throws:
 com.jcraft.jsch.SftpException
 - 
makeDirectory
 - 
transferFile
public void transferFile(BapSshTransfer bapSshTransfer, FilePath filePath, InputStream inputStream) throws com.jcraft.jsch.SftpException, IOException, InterruptedException - Throws:
 com.jcraft.jsch.SftpExceptionIOExceptionInterruptedException
 - 
endTransfers
- Specified by:
 endTransfersin interfacejenkins.plugins.publish_over.BPClient<BapSshTransfer>- Overrides:
 endTransfersin classjenkins.plugins.publish_over.BPDefaultClient<BapSshTransfer>
 - 
parseAllCommands
 - 
parseCommand
 - 
disconnectExecQuietly
public void disconnectExecQuietly(com.jcraft.jsch.ChannelExec exec)  - 
disconnect
public void disconnect() - 
disconnectQuietly
public void disconnectQuietly() 
 -