-1

I am seeking to set up a Release Pipeline in Azure DevOps Services that will deploy an application to a Unix server, where it then executes some unix commands as part of the deployment.

Would appreciate some guidance on which pipeline Task(s) I can set up to therefore achieve the following objectives:

  1. Connect to the Unix server.
  2. Execute the required Unix commands.

By the way, the Agents are currently installed on Windows hosts but we are looking to extend that to Unix servers in due course, so a solution that fits both setups would be ideal, even though the former is the priority.

hitman126
  • 699
  • 1
  • 12
  • 43

2 Answers2

2

You can check out task SSH Deployment task.

Use this task to run shell commands or a script on a remote machine using SSH. This task enables you to connect to a remote machine using SSH and run commands or a script.

If you need to copy files to the remote linux server. You can check out Copy Files Over SSH task.

You probably need to create a SSH service connection. See steps here to create as service connection.

Levi Lu-MSFT
  • 27,483
  • 2
  • 31
  • 43
  • Hi @Levi Lu-MSFT we didn't go with that option (SSH Deployment task) in the end, due to concerns raised about the install of private keys on the target server. Instead, we opted for the use of Deployment Groups which has enabled us to set up a persistent connection to our Linux server. – hitman126 Nov 05 '20 at 15:22
0

In the end, due to concerns raised about the install of private keys on the target server which is part of the SSH Deployment setup, we opted for the use of Deployment Groups which has enabled us to set up a persistent connection to our Linux server.

hitman126
  • 699
  • 1
  • 12
  • 43