Jenkins - Publish Over SSH Plugin: How to copy directory

爷,独闯天下 提交于 2019-12-06 03:41:36

问题


I'm trying to use Jenkins' Publish Over SSH plugin to copy all files AND sub-directories of some given directory, but so far, I've only able to copy files and NOT directory.

I have a directory named foo in my workspace, and during the build, I want to copy everything in this directory to a remote server. I've tried this pattern foo/**, but it doesn't copy all sub-directories.

Any suggestion? Or this is not the plugin I should be using?

Thanks


回答1:


For recursive copy of directory you should give

foo/**/*

I verified this on my laptop using locally deploying Jenkins. It works fine.



来源:https://stackoverflow.com/questions/40084174/jenkins-publish-over-ssh-plugin-how-to-copy-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!