SSH Exec
The SSH Exec enables TeamCity to execute arbitrary remote commands using SSH.
The settings common for all runners are described in Configuring Build Steps; this page details the SSH Exec runner settings.
The fields below support parameter references: any text between percentage signs (%
) is considered a reference to a property by TeamCity. To prevent TeamCity from treating the text in the percentage signs as reference to a property, use two percentage signs to escape them: for example, if you want to pass %Y%m%d%H%M%S
into the build, change it to %%Y%%m%%d%%H%%M%%S
.
Option | Description |
---|---|
Deployment Target | |
Target | Target should point to an SSH server location. Enter hostname or IP address. |
Port | Optional. By default, port 22 is used. |
Use pty | Optional. Specify the type of the pty terminal. For example, If empty, pty will not be allocated (default). |
Deployment Credentials | The settings in this section will vary depending on the selected authentication method. |
Authentication method | Select an SSH authentication method.
|
SSH Commands | |
Commands | Specify a new-line delimited set of commands that will be executed in the remote shell. The remote shell will be started in the home directory of an authenticated user. The shell output will be available in the TeamCity build log. |