jenkins windons代理

时间:2017-08-22 20:45:10

标签: jenkins jenkins-plugins perforce jenkins-pipeline

我无法在Jenkins widows代理上同步我的工作区,你知道发生了什么吗?这是错误:

ERROR: P4 Task: failed: com.perforce.p4java.exception.P4JavaException: com.perforce.p4java.exception.P4JavaException: hudson.AbortException: P4JAVA: Error(s): symlink file C:\Jenkins\workspace\**\***** can't be sync'd or created with this client program.

我的设置: Jenkins 2.74(p4插件版本:2.7.3 windows 10(安装了java 8和p4 cmd)

2 个答案:

答案 0 :(得分:2)

听起来插件可能是用旧的JDK构建的?

https://www.perforce.com/perforce/doc.current/user/p4javanotes.txt

* For Java versions prior to JDK 7, P4Java does not correctly
  implement or deal with Unix / Linux and Windows symbolic links.
  This is a known issue related to older (prior to JDK 7) versions
  of Java's inability to itself implement symbolic links.

答案 1 :(得分:0)

我发现了这个问题,这是与创建符号链接相关的窗口问题,只有管理员授权执行此操作,使用管理员帐户或通过安全设置允许其他用户创建符号链接。