A mounting plug Publish over SSH
Second, the configuration Publish over SSH properties in the Configure System
Passphrase: If the private key is to set a password for the private key, the private key is not to set a password can not fill
Path to key: the private key position
Key: the contents of the private key. If Fill in the value, with the value of the subject here, it will ignore Path to key configuration
SSH Servers: Server Configuration
Name: Name (Custom)
Hostname: Server Address
Username: Username
Remote Directory: The default remote server address
Note: In the above configuration, to generate a first private key on a server jenkins, then pushed to the server public key.
Third, the use Publish over SSH jenkins job in the
Can, or pre- and post-operation, select SSH-related operations in the job build process, because here I have created, so it grayed
The main configuration is as follows:
Transfers:
Source files: source address, directory address is relative to jenkins workspace directory, if only need to perform when the command does not need to transfer files here can be empty
Remove prefix: remove the file address. Fill in the address input box Source files are created by default in the same folder as the server, so we do not need the folder where weed out
Address of the remote server to receive files: Remote directory
Exec command: file transfer after the task is completed, commands executed on a remote server