-1

I have a need to copy files from Github enterprise repo (to be more specific, whatever exists under master branch) to a directory in Linux VM from an Azure DevOps pipeline.

Here, I have listed few options that I found from documentation and few from Stack Overflow discussions, and why I do not like to opt these options:

  1. Azure File Copy task requires intermediate storage account but I would not like to configure the same.

  2. This discussion recommends SSH task. SSH task requires a private key to be configured on the target VM in addition to the VM user name and password. But, I would not like to configure the same. Can I push code from Azure devops to Azure VM?

  3. This discussion recommends Windows File Copy task but I do not see something similar for LINUX. Obtain the artifact directory path as a relative path for the Release process

  4. This discussion is closer to my need but I would not like to "deploy" but just "copy" Deploy python script to virtual machine from GitHub via Azure Pipeline

Appreciate a mindshare on this need. Thank you.

  • Is there any update about this ticket? Feel free to let me know if the answer could give you some help. Just a remind of [this](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work) – Kevin Lu-MSFT Sep 07 '21 at 08:17

1 Answers1

0

Since you don't want to use ssh key and azure storage account, I suggest that you can consider using the Self-hosted Linux Agent.

Then you can directly copy the files to linux server via using the Self-hosted agent in Azure Pipeline.

Kevin Lu-MSFT
  • 20,786
  • 3
  • 19
  • 28