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

p4 plugin update creating issue if repository browse is not set to swarm url for checkout

XMLWordPrintable

      when i do a checkout from job or from a pipeline script after updating to the latest p4 plugin. it throws the following error.

       
      java.lang.NullPointerException
      at org.jenkinsci.plugins.p4.client.ConnectionHelper.getSwarm(ConnectionHelper.java:595)
      at org.jenkinsci.plugins.p4.changes.P4ChangeParser$ChangeLogHandler.<init>(P4ChangeParser.java:73)
      at org.jenkinsci.plugins.p4.changes.P4ChangeParser.parse(P4ChangeParser.java:48)
      Caused: org.xml.sax.SAXException: Could not parse perforce changelog:
      java.lang.NullPointerException
      at org.jenkinsci.plugins.p4.changes.P4ChangeParser.parse(P4ChangeParser.java:53)
      at org.jenkinsci.plugins.workflow.job.WorkflowRun.onCheckout(WorkflowRun.java:759)
      at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$1500(WorkflowRun.java:127)
      at org.jenkinsci.plugins.workflow.job.WorkflowRun$SCMListenerImpl.onCheckout(WorkflowRun.java:949)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:123)
      at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:130)
      at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:59)
      at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:234)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:405)
      Finished: FAILURE

      I had to go and manually update browse as swarm and url then it works fine.

            Unassigned Unassigned
            karthik546 karthik paidi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: