问题描述
这是我的目标
我能够在 jenkins 中使用以下 windows 批处理命令完成第 1 部分
echo on
net use K: "\\some-server\shared-folder$" /user:username %someid%
copY "K:\*.psv" "%WORKSPACE%\"
我已将密码保存在凭据中并在上述命令中使用。这工作正常。但是,当我尝试对另一台服务器和共享文件夹执行相同操作时,此设置不起作用。我在 jenkins 控制台中遇到以下错误。我能够在本地映射和访问新的服务器/共享驱动器,但它在我的 jenkins 工作中不起作用。我错过了什么吗? Jenkins 也安装在 windows 机器上,我已经验证我的密码在 jenkins 凭据中配置正确
错误:
C:\Jenkins\workspace\TEST>echo on
C:\Jenkins\workspace\TEST>net use K: "\\another-server\shared-folder$" /user:username
The password or user name is invalid for \\another-server\shared-folder$.
Enter the password for 'username' to connect to 'server': System error 1326 has occurred.
The user name or password is incorrect.
C:\Jenkins\workspace\TEST>copY "K:\*.psv" "C:\Jenkins\workspace\TEST\"
The system cannot find the drive specified.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)