无论如何,是否可以使用 Hudson 将 .war 或 .jar 从一台服务器传输到另一台服务器?

发布于 2024-10-19 19:41:36 字数 139 浏览 10 评论 0原文

我正在使用 Hudson,想知道是否有办法将一个文件(该文件位于 Linux 服务器上)传输到另一台 Linux 服务器。

也许使用 Linux 上的 scp 命令,只是想知道是否有人已经这样做了,也许可以为我指明正确的方向。

谢谢

I am using Hudson and wondering if is there anyway to transfer one file(this file is on a Linux Server)to another linux server.

Maybe use scp command from linux, just wanna know if somebody already did this, and maybe point me to the right direction.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风启觞 2024-10-26 19:41:36

SCP 插件应该可以满足您的需求。

它允许您选择使用密钥或用户名/密码。目标在中央 Hudson/Jenkins 配置中进行配置,然后您可以选择要在特定作业中上传到的目标。在作业中,您可以指定与要上传的所需文件相匹配的模式。

The SCP plugin should fit your needs.

It lets you choose between using a key or username/ password. Destinations are configured in the central Hudson/ Jenkins config, then you can choose a destination to upload to in a specific job. And in the job you can specify a pattern matching the desired file(s) to upload.

二智少女 2024-10-26 19:41:36

在你哈德逊工作吗?当然,您可以在“执行 shell”构建步骤中使用 scp。为了使其正常工作,您可能需要在两个主机之间设置公钥身份验证,IIRC scp 不允​​许您指定密码。

还有几个用于将构建工件复制到其他系统的插件(请参阅 http://wiki.hudson-ci.org/display/HUDSON/All+Plugins+by+Topic#AllPluginsbyTopic-Artifactuploaders),例如有一个 scp 工件存档器。

In your hudson job? Sure, you could use scp in an "execute shell" build step. For getting this to work you probably need to have public-key authentication setup between the two hosts, IIRC scp does not allow you to specify a password.

There are also several plugins for copying build artifacts to other systems (see http://wiki.hudson-ci.org/display/HUDSON/All+Plugins+by+Topic#AllPluginsbyTopic-Artifactuploaders), for instance there is an scp artifact archiver.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文