Package jenkins.plugins.publish_over_ssh
Class BapSshHostConfiguration
java.lang.Object
jenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,BapSshCommonConfiguration>
jenkins.plugins.publish_over_ssh.BapSshHostConfiguration
- All Implemented Interfaces:
Describable<BapSshHostConfiguration>
,Serializable
public class BapSshHostConfiguration
extends jenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,BapSshCommonConfiguration>
implements Describable<BapSshHostConfiguration>
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBapSshHostConfiguration
(String name, String hostname, String username, String encryptedPassword, String remoteRootDir, int port, int timeout, boolean overrideKey, String keyPath, String key, boolean disableExec, boolean avoidSameFileUploads, String proxyHost, int proxyPort, String proxyUser, String secretProxyPassword, String proxyType) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.commons.lang.builder.EqualsBuilder
addToEquals
(org.apache.commons.lang.builder.EqualsBuilder builder, BapSshHostConfiguration that) protected org.apache.commons.lang.builder.HashCodeBuilder
addToHashCode
(org.apache.commons.lang.builder.HashCodeBuilder builder) protected org.apache.commons.lang.builder.ToStringBuilder
addToToString
(org.apache.commons.lang.builder.ToStringBuilder builder) createClient
(jenkins.plugins.publish_over.BPBuildInfo buildInfo) createClient
(jenkins.plugins.publish_over.BPBuildInfo buildInfo, boolean connectSftp) createClient
(jenkins.plugins.publish_over.BPBuildInfo buildInfo, jenkins.plugins.publish_over.BapPublisher publisher) protected com.jcraft.jsch.JSch
boolean
final String
getKey()
getName()
protected final String
int
int
int
hashCode()
boolean
boolean
boolean
boolean
void
setDisableExec
(boolean disableExec) void
setEncryptedPassword
(String encryptedPassword) void
setHostname
(String hostname) void
setJumpHost
(String jumpHost) void
void
setKeyPath
(String keyPath) void
setOverrideKey
(boolean overrideKey) final void
setPassword
(String password) void
setPort
(int port) void
setProxyHost
(String proxyHost) void
setProxyPassword
(String proxyPassword) void
setProxyPort
(int proxyPort) void
setProxyType
(String proxyType) void
setProxyUser
(String proxyUser) void
setRemoteRootDir
(String remoteRootDir) void
setSecretProxyPassword
(Secret secretProxyPassword) void
setTimeout
(int timeout) toString()
Methods inherited from class jenkins.plugins.publish_over.BPHostConfiguration
addToEquals, changeToRootDirectory, exception, getCommonConfig, getHostname, getHostnameTrimmed, getPort, getRemoteRootDir, getUsername, isDirectoryAbsolute, setCommonConfig, setName, setUsername
-
Field Details
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT- See Also:
-
CONFIG_KEY_PREFERRED_AUTHENTICATIONS
- See Also:
-
DEFAULT_JUMP_HOST
- See Also:
-
HTTP_PROXY_TYPE
- See Also:
-
SOCKS_4_PROXY_TYPE
- See Also:
-
SOCKS_5_PROXY_TYPE
- See Also:
-
DEFAULT_AVOID_SAME_FILES_UPLOAD
public static final boolean DEFAULT_AVOID_SAME_FILES_UPLOAD- See Also:
-
-
Constructor Details
-
BapSshHostConfiguration
public BapSshHostConfiguration() -
BapSshHostConfiguration
@DataBoundConstructor public BapSshHostConfiguration(String name, String hostname, String username, String encryptedPassword, String remoteRootDir, int port, int timeout, boolean overrideKey, String keyPath, String key, boolean disableExec, boolean avoidSameFileUploads, String proxyHost, int proxyPort, String proxyUser, String secretProxyPassword, String proxyType)
-
-
Method Details
-
setJumpHost
-
getJumpHost
-
getName
- Overrides:
getName
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-
setHostname
- Overrides:
setHostname
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-
setRemoteRootDir
- Overrides:
setRemoteRootDir
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-
setPort
@DataBoundSetter public void setPort(int port) - Overrides:
setPort
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-
getTimeout
public int getTimeout() -
setTimeout
@DataBoundSetter public void setTimeout(int timeout) -
getPassword
- Overrides:
getPassword
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-
setPassword
- Overrides:
setPassword
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-
getEncryptedPassword
- Overrides:
getEncryptedPassword
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-
setEncryptedPassword
-
getKeyPath
-
setKeyPath
-
getKey
-
setKey
-
isOverrideKey
public boolean isOverrideKey() -
setOverrideKey
@DataBoundSetter public void setOverrideKey(boolean overrideKey) -
isDisableExec
public boolean isDisableExec() -
setDisableExec
@DataBoundSetter public void setDisableExec(boolean disableExec) -
getProxyType
-
getProxyHost
-
getProxyPort
public int getProxyPort() -
getProxyUser
-
getProxyPassword
-
getSecretProxyPassword
-
setProxyType
-
setProxyHost
-
setProxyPort
@DataBoundSetter public void setProxyPort(int proxyPort) -
setProxyUser
-
setProxyPassword
-
setSecretProxyPassword
-
isAvoidSameFileUploads
public boolean isAvoidSameFileUploads() -
readResolve
- Overrides:
readResolve
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-
isEffectiveDisableExec
public boolean isEffectiveDisableExec() -
createClient
public BapSshClient createClient(jenkins.plugins.publish_over.BPBuildInfo buildInfo, jenkins.plugins.publish_over.BapPublisher publisher) - Overrides:
createClient
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-
createClient
- Specified by:
createClient
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-
createClient
public BapSshClient createClient(jenkins.plugins.publish_over.BPBuildInfo buildInfo, boolean connectSftp) -
createJSch
protected com.jcraft.jsch.JSch createJSch() -
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<BapSshHostConfiguration>
-
addToEquals
protected org.apache.commons.lang.builder.EqualsBuilder addToEquals(org.apache.commons.lang.builder.EqualsBuilder builder, BapSshHostConfiguration that) -
addToHashCode
protected org.apache.commons.lang.builder.HashCodeBuilder addToHashCode(org.apache.commons.lang.builder.HashCodeBuilder builder) - Overrides:
addToHashCode
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-
addToToString
protected org.apache.commons.lang.builder.ToStringBuilder addToToString(org.apache.commons.lang.builder.ToStringBuilder builder) - Overrides:
addToToString
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-
equals
- Overrides:
equals
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-
toString
- Overrides:
toString
in classjenkins.plugins.publish_over.BPHostConfiguration<BapSshClient,
BapSshCommonConfiguration>
-