使用 DevOps 发布管道将工件上传到 Linux 服务器

Use DevOps Release Pipeline to Upload Artifacts to a Linux Server

是否有使用 SCP 或其他协议将 zip 文件中的构建工件上传到 Linux 服务器的简单方法?

现在构建位于构建服务器上的特定目录中准备上传,但我一直在阅读的文档没有明确说明如何使用 DevOps Release Pipeline 将其上传到 Linux .我一直在阅读的文档和 question/answers 似乎是 windows 到 windows 而不是 windows 到 Linux。

谢谢!

Is there a simple way to upload build artifacts in a zip file to a Linux Server using SCP or some other protocol?

您可以尝试使用 Copy Files Over SSH 任务将工件复制到 Linux 服务器。

Use this task in a build or release pipeline to copy files from a source folder to a target folder on a remote machine over SSH.

This task allows you to connect to a remote machine using SSH and copy files matching a set of minimatch patterns from specified source folder to target folder on the remote machine. Supported protocols for file transfer are SFTP and SCP via SFTP. In addition to Linux, macOS is partially supported.

请查看开发者论坛 Copy Files Over SSH during Continuous Integration and Deployment 了解更多详情。