我设置了一个Jenkins作业,每隔15分钟轮询Perforce以查看仓库中的更改,但是我在轮询日志中看到以下错误:
Caught Exception communicating with perforce.P4 Where Parsing Error: //... and //some_depot/... filespecs are not allowed.
FATAL: Unable to communicate with perforce. Check log file for: P4 Where Parsing Error: //... and //some_depot/... filespecs are not allowed.
java.io.IOException: Unable to communicate with perforce. Check log file for: P4 Where Parsing Error: //... and //some_depot/... filespecs are not allowed.
at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:1296)
at hudson.scm.SCM.poll(SCM.java:397)
at hudson.model.AbstractProject._poll(AbstractProject.java:1435)
at hudson.model.AbstractProject.poll(AbstractProject.java:1338)
at jenkins.triggers.SCMTriggerItem$SCMTriggerItems$Bridge.poll(SCMTriggerItem.java:119)
at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515)
at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544)
at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Done. Took 5.4 sec
No changes以前有没有人见过这个?几个小时前,轮询似乎工作得很好,但现在每次轮询都会出现这个错误。
发布于 2014-11-14 04:50:30
可能Perforce管理员刚刚安装了一个新的触发器,该触发器会生成错误消息
//... and //some_depot/... filespecs are not allowed.如果它看到带有不可接受的视图映射的客户端工作区规范。
如果这确实是您的问题,那么您要么必须为Jenkins构建正在使用的客户端工作区指定一个更窄(更精确)的视图映射,要么让管理员在触发器中给您一个异常。
https://stackoverflow.com/questions/26913643
复制相似问题