简体   繁体   English

如何将文件从远程 Linux 服务器传输到工件

[英]How can I transfer files from a remote Linux server to artifactory

How can I write a script in Jenkins ( have a linux node) that will allow me to transfer a file, for eg sample.txt which is present in the remote linux server to the artifactory ( Jfrog).如何在 Jenkins(有一个 linux 节点)中编写一个脚本,该脚本将允许我传输文件,例如远程 linux 服务器到 artifactory 中的sample.txt

I am new to the whole SFTP from CLI since usually, I have done through the WinSCP UI and that too from my local to a remote server, so any pointers on where to get started will be helpful as well我是来自 CLI 的整个 SFTP 的新手,因为通常我已经通过 WinSCP UI 完成了,而且从我的本地服务器到远程服务器也是如此,所以任何关于从哪里开始的指针也会有所帮助

As you are looking to deploy artifacts only through the Jenkins job, then you can use the DeployArtifact REST API, create a UNIX script based on your requirement, and then execute the same through the Execute shell option from the Jenkins job. As you are looking to deploy artifacts only through the Jenkins job, then you can use the DeployArtifact REST API, create a UNIX script based on your requirement, and then execute the same through the Execute shell option from the Jenkins job.

As a side note, if you are looking to deploy the artifacts that exists on the Jenkins VM to the Artifactory repository, then you can make use of the rtUpload method.附带说明一下,如果您希望将 Jenkins VM 上存在的工件部署到 Artifactory 存储库,那么您可以使用rtUpload方法。 You can refer to the JFrog wiki page here for more details with an example on the same.您可以在此处参考 JFrog wiki 页面以获取更多详细信息以及相同的示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何通过ftp从一台Linux计算机(客户端)传输加密文件并在另一台Linux计算机(服务器)上解密 - how to transfer encrypted files from one linux machine(client) over ftp and decrypt on other linux machine(server) 将文件从Windows服务器传输到Linux服务器的方法 - Methods to transfer files from Windows server to linux server 我如何在远程Linux服务器上运行bash - How can i run bash on a remote linux server 如何在Linux中测试远程服务器是否正常运行? - How can I test if a remote server is up in Linux? 如何通过ftp在远程之间传输文件? - How to transfer files from remote to remote via ftp? 如何使用cron和rsync将文件从远程服务器传输到本地路径 - How to use cron and rsync to transfer files from remote server to local path 使用PHP将图像文件从Android传输到Linux服务器 - transfer image files from Android to a Linux server using PHP 远程linux服务器到远程linux服务器的大型稀疏文件复制-如何操作? - Remote linux server to remote linux server large sparse files copy - How To? 如何在 WinSCP 中运行 SUDO 命令将文件从 Windows 传输到 linux - How to run SUDO command in WinSCP to transfer files from Windows to linux 使用套接字传输文件服务器/客户端 linux C - transfer files server/client linux C with socket
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM