简体   繁体   English

Jenkins将slave版本从master上传到服务器

[英]Jenkins upload slave build to a server from master

Jenkins is running in a windows machine. Jenkins在Windows机器上运行。 Slave is a mac building iPhone apps. 从属是Mac构建的iPhone应用程序。 (using ssh) (使用ssh)

This configuration building successfully. 此配置成功建立。 If I archive the artifact (eg Output/ . ) it saves in the master (windows machine). 如果我归档工件(例如Output / ),它将保存在主工件(Windows机器)中。 But when I try to run any bat command to copy files in the post build steps, it runs in the slave machine. 但是,当我尝试在构建后的步骤中运行任何bat命令来复制文件时,它将在从属计算机中运行。
How can I run command in the master (Windows), in the post build steps? 在后期构建步骤中,如何在master(Windows)中运行命令? Or there is other ways to do it? 还是有其他方法可以做到?

I want to upload the build artifact to a server accessible only from the windows (master) machine. 我想将构建工件上传到只能从Windows(主)计算机访问的服务器。 How can I do that? 我怎样才能做到这一点?

How to tell Jenkins, to take the build artifacts from the slave and run some command (copy files) on those files in the master. 如何告诉詹金斯(Jenkins)从从属服务器获取构建工件,并在主服务器上的那些文件上运行一些命令(复制文件)。

Use the Publish Over FTP Plugin. 使用通过FTP发布插件。 Create an ftp in master and using Publish Over FTP Plugin, copy the build artifacts to master machine. 在master中创建一个ftp,并使用ftp over ftp插件发布,将构建工件复制到master计算机中。

Thanks, Manu 谢谢,Manu

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

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