Use DevOps Release Pipeline to Upload Artifacts to a Linux Server

狂风中的少年 提交于 2020-12-14 23:55:51

问题


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

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.

Thanks!


回答1:


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.

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.

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



来源:https://stackoverflow.com/questions/64923146/use-devops-release-pipeline-to-upload-artifacts-to-a-linux-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!