简体   繁体   English

将文件夹从远程复制到 Gitlab runner 以将其保存在 Artifacts 中

[英]Copy Folder from remote to Gitlab runner to save it in Artifacts

Is it possible to save reports inside a folder on a remote server with the Gitlab runner so that I can save it in Artifacts?是否可以使用 Gitlab runner 将报告保存在远程服务器上的文件夹中,以便我可以将其保存在 Artifacts 中?

wan't to copy a folder from a remote server into gitlab runner and pass it as an artifact不想将文件夹从远程服务器复制到 gitlab runner 并将其作为工件传递

I can see a few ways to achieve that:我可以看到几种实现这一目标的方法:

  1. create a job that will be fetching a folder from a remote server and upload it to GitLab as an Artifact.创建一个将从远程服务器获取文件夹并将其作为工件上传到 GitLab 的作业。
  2. create a folder on the server with the GitLab runner installed, fetch reports into that folder (scp/rsync, etc), and access it by GitLab runner itself (and GitLab Runner will save them as an Artifact).在安装了 GitLab runner 的服务器上创建一个文件夹,将报告提取到该文件夹(scp/rsync 等),然后通过 GitLab runner 本身访问它(GitLab Runner 会将它们保存为工件)。

Let me know if you need to know more, so I'll update my answer.如果您需要了解更多信息,请告诉我,以便我更新我的答案。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM