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

NPE in parseProjectPath when attempting to create Perforce workspace without a mapping

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • p4-plugin
    • None
    • Jenkins ver. 1.609.2 perforce-plugin ver. 1.3.35

      Before upgrading from 1.3.33 to 1.3.35 Jenkins was able to create a Perforce workspace when it didn't already exist, however after upgrading to 1.3.35 I get the following NPE:

      My Perforce configuration has a username listed, but the password is blank, and not necessary.

      Building in workspace /path/to/workspace
      Using master perforce client: workspace_name
      [ltconeng] $ /corp/tools/perforce/2011.1/cli/p4 workspace -o workspace_name
      Changing P4 Client Root to: /path/to/workspace
      Caught exception in perforce-plugin. nulljava.lang.NullPointerException
      	at hudson.plugins.perforce.PerforceSCM.parseProjectPath(PerforceSCM.java:2502)
      	at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1710)
      	at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1602)
      	at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:907)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1274)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531)
      	at hudson.model.Run.execute(Run.java:1738)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:381)
      ERROR: Caught exception in perfoce-plugin. null
      

          [JENKINS-30373] NPE in parseProjectPath when attempting to create Perforce workspace without a mapping

          Justin Wagner created issue -
          Rob Petti made changes -
          Assignee Original: Rob Petti [ rpetti ]
          Rob Petti made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Justin Wagner made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Rob Petti made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]
          Summary Original: NPE in parseProjectPath when attempting to create Perforce workspace New: NPE in parseProjectPath when attempting to create Perforce workspace without a mapping
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 165477 ] New: JNJira + In-Review [ 186316 ]
          Jenkins IRC Bot made changes -
          Component/s New: p4-plugin [ 19224 ]
          Component/s Original: perforce-plugin [ 15506 ]

            Unassigned Unassigned
            jwagner Justin Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: