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

Perforce plugin cannot handle 'move/add' changes created by P4 2009.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • p4-plugin
    • None
    • Platform: All, OS: All

      The most recent version of perforce added a p4 move command that relocates a
      file within the depot. If the Hudson Perforce plugin encounters these it blows
      up. Log and p4 describe output below:

      This is the log from a test build:
      Started by an SCM change
      Using master perforce client: hudson_orbitalelements_mainline
      [workspace] $ p4 workspace -o hudson_orbitalelements_mainline
      Last sync'd change: 37507
      [workspace] $ p4 counter change
      [workspace] $ p4 -s changes //anonworkspace/...@37508,@37511
      [workspace] $ p4 describe -s 37511
      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:1001)
      at hudson.model.AbstractBuild$AbstractRunner.checkout
      (AbstractBuild.java:428)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:376)
      at hudson.model.Run.run(Run.java:1174)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:303)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:123)
      Caused by: java.lang.IllegalArgumentException: No enum const class
      com.tek42.perforce.model.Changelist$FileEntry$Action.MOVE/ADD
      at java.lang.Enum.valueOf(Enum.java:196)
      at com.tek42.perforce.model.Changelist$FileEntry$Action.valueOf
      (Changelist.java:88)
      at com.tek42.perforce.parse.ChangelistBuilder.build
      (ChangelistBuilder.java:163)
      ... 10 more

      p4 describe -s 37511
      Change 37511 by anon@anon on 2009/10/26 17:37:40

      Comment describing changelist removed

      Affected files ...

      ... //depot/projects/_mainline/Libs/pom.xml#1 move/add

            Unassigned Unassigned
            mdouglass mdouglass
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: