Jenkins-通过SSH插件发布:如何复制目录 [英] Jenkins - Publish Over SSH Plugin: How to copy directory
问题描述
我正在尝试使用 Jenkins通过SSH发布插件可复制给定目录的所有文件和子目录,但是到目前为止,我只能复制文件,而不能复制目录.
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.
我的工作空间中有一个名为foo
的目录,在构建过程中,我想将此目录中的所有内容复制到远程服务器.
我已经尝试过此模式foo/**
,但是它不会复制所有子目录.
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?
谢谢
推荐答案
对于目录的递归副本,您应提供
For recursive copy of directory you should give
foo/**/*
foo/**/*
我使用本地部署的Jenkins在笔记本电脑上对此进行了验证.效果很好.
I verified this on my laptop using locally deploying Jenkins. It works fine.
这篇关于Jenkins-通过SSH插件发布:如何复制目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!