Jenkins 如何实现 拷贝文件到网络共享目录
在使用jenkins中,发现拷贝文件时,不能在脚本中直接添加脚本实现。
我实现的一种方法,希望能对您有用。
net use y: \\server_name\workspace "passwork" /User:"username"
cd y:
mkdir y:\%BUILD_DISPLAY_NAME%
xcopy C:\work\workspace\*.dll y:\%BUILD_DISPLAY_NAME%\
在使用jenkins中,发现拷贝文件时,不能在脚本中直接添加脚本实现。
我实现的一种方法,希望能对您有用。
net use y: \\server_name\workspace "passwork" /User:"username"
cd y:
mkdir y:\%BUILD_DISPLAY_NAME%
xcopy C:\work\workspace\*.dll y:\%BUILD_DISPLAY_NAME%\