开发者

Is there anyway to transfer .war or .jar from one server to another with Hudson?

I am using Hudson and开发者_StackOverflow社区 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


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜