Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-4438

Perforce CLs with jobs can not be parsed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • p4-plugin
    • None
    • Platform: All, OS: All

      In our environment, 100% of changelists that have associated jobs will generate
      an error when Hudson needs to access them. So far this is the only case that
      will cause this problem. This is with Perforce Plugin 1.0.14 (which, btw, had
      some very positive changes... thank you).

      It's possible this is a duplicate, although I didn't see any open tickets that
      narrowed down problems specifically to changelists with jobs.

      The P4D version is 2008.1.

      Here's the error message in the build log:

      [workspace] $ p4 describe -s 2346793
      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:173)
      at com.tek42.perforce.parse.Changes.getChangelist(Changes.java:63)
      at com.tek42.perforce.parse.Changes.getChangelistsFromNumbers(Changes.java:378)
      at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:323)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:833)
      at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:314)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266)
      at hudson.model.Run.run(Run.java:949)
      at hudson.model.Build.run(Build.java:112)
      at hudson.model.ResourceController.execute(ResourceController.java:93)
      at hudson.model.Executor.run(Executor.java:116)
      Caused by: java.util.NoSuchElementException
      at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
      at com.tek42.perforce.parse.ChangelistBuilder.build(ChangelistBuilder.java:119)
      ... 10 more

      Here's what I see in the tomcat stdout log:

      878890639 [http-8443-Processor9] INFO perforce - Executing: p4 counter change
      878890717 [http-8443-Processor9] INFO perforce - Executing: p4 describe -s 2346793
      878890795 [http-8443-Processor9] ERROR perforce - Exception: null
      878890842 [http-8443-Processor22] INFO perforce - Executing: p4 counter change
      878890920 [http-8443-Processor22] INFO perforce - Executing: p4 describe -s 2346793
      878890982 [http-8443-Processor22] ERROR perforce - Exception: null
      stream:error (text)
      at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:320)
      at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
      at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:63)
      stream:error (text)
      at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:320)
      at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
      at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:63)

      If there's any more information I can provide, please let me know. Having this
      work properly would be a huge win for us.

            Unassigned Unassigned
            oeuftete oeuftete
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: