我正在尝试使用jenkins将文件从一个文件夹复制到另一个文件夹。
构建脚本如下:
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
</head>
<body>
<img src="https://static.pexels.com/photos/33109/fall-autumn-red-season.jpg" width="200" height="267" alt="me">
</body>
</html>
控制台输出:参数数量无效
答案 0 :(得分:1)
“窗户”是什么意思? 我假设jenkins服务器在Windows操作系统上,或者从属节点是Windows操作系统。 同时你标记为“bash”你的意思是“批处理”吗? 参考$ Workspace也不是windows风格,你应该使用%workspace% 一个例子:
尝试以下命令:
xcopy / s / Y%WORKSPACE%\ dir1 *。*%WORKSPACE%\ dir2。
这应该有用。