-
Bug
-
Resolution: Fixed
-
Major
-
None
I'm relatively new to Hudson. There is a particular job that would fail out with the below shown exception but the other jobs would not. This happens with a hit rate of 100% and not an one-off issue. I fear it could be due to a erroneous string parsing while going through the output of 'p4 describe'. If I change the "last changelist to track' to the latest changelist so as to avoid a lot of 'p4 describe' tasks and as expected it just goes through fine.
If the above speculaion is true then is there a way to track down using hudson logs(where would this be?) on which string does this happen?
Caught exception communicating with perforce. Failed to retrieve changelist.com.tek42.perforce.PerforceException: Failed to retrieve changelist.
at com.tek42.perforce.parse.ChangelistBuilder.build(ChangelistBuilder.java:185)
at com.tek42.perforce.parse.Changes.getChangelist(Changes.java:63)
at com.tek42.perforce.parse.Changes.getChangelistsFromNumbers(Changes.java:381)
at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:565)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1116)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
at hudson.model.Run.run(Run.java:1324)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:139)
Caused by: java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
at com.tek42.perforce.parse.ChangelistBuilder.build(ChangelistBuilder.java:95)
... 10 more
ERROR: Unable to communicate with perforce. Failed to retrieve changelist.
- depends on
-
JENKINS-7809 Remote Launcher randomly returns no data.
-
- Resolved
-
The job log will have plenty of "p4 describe" lines when it's pulling out changes. Just look for the one immediately above this error message, and that will tell you what changeset it's failing on.
You haven't supplied your p4d, perforce plugin, and hudson versions. Can you provide those please? Stack traces aren't really helpful if I don't know what version to look at.