使用DevOps发布管道将工件上传到Linux服务器 [英] Use DevOps Release Pipeline to Upload Artifacts to a Linux Server

查看:53
本文介绍了使用DevOps发布管道将工件上传到Linux服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

现在,该构建位于构建服务器上的特定目录中,可以上载,但是我正在阅读的文档尚不清楚如何使用DevOps Release Pipeline将其上载到Linux.我一直在阅读的文档和问题/答案似乎是Windows而非Windows的窗口.

Right now the build sits in a specific directory on the build server ready to be uploaded but the docs I've been reading haven't made it clear how to upload it to Linux using DevOps Release Pipeline. The documentation and question/answers I've been reading appears to be windows to windows rather than windows to Linux.

谢谢!

推荐答案

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

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

您可以尝试使用

You could try to use Copy Files Over SSH task to copy the Artifacts to a Linux Server.

在构建或发布管道中使用此任务可从通过SSH将源文件夹复制到远程计算机上的目标文件夹.

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.

此任务使您可以使用SSH连接到远程计算机并进行复制匹配指定来源的一组minimatch模式的文件文件夹到远程计算机上的目标文件夹.支持的协议文件通过SFTP传输的是SFTP和 SCP .除了Linux ,macOS部分受支持.

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.

请检查开发者论坛在持续集成和部署过程中通过SSH复制文件以获取更多详细信息.

Please check the developer forum Copy Files Over SSH during Continuous Integration and Deployment for some more details.

这篇关于使用DevOps发布管道将工件上传到Linux服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆