Daniel,

(Using Jenkins 1.565.3, and Perforce SCM plug-in 1.3.29)

  1. Start Jenkins (I ran hpi:run)
  2. Add a dump remote node
  3. Configure a job to use as a 'Run Parameter' reference.
  4. Configure another job to use as a primry repro job
    • Add a run paramter and point it to the job created in step #3
    • Add an execution of the Perforce SCM plug-in.
      • You can use 'guest' as your use and workshop.perforce.com:1666 as your server
  5. Run job #3 to get at least one entry in the drop down

The job will fail with an obscure error that looks to be an issue with Perforce but while debugging the code, I noticed that it was because the 'Run Parameter' variable was NULL when the Perforce SCM plug-in was trying to use it to do substitution. The eactt error that I'm seeing is:

Caught exception in perforce-plugin. nulljava.lang.NullPointerException
	at java.lang.String.replace(String.java:2207)
	at hudson.plugins.perforce.utils.MacroStringHelper.substituteParametersNoCheck(MacroStringHelper.java:185)
	at hudson.plugins.perforce.utils.MacroStringHelper.getDefaultSubstitutions(MacroStringHelper.java:341)
	at hudson.plugins.perforce.utils.MacroStringHelper.substituteParametersNoCheck(MacroStringHelper.java:246)
	at hudson.plugins.perforce.utils.MacroStringHelper.substituteParametersNoCheck(MacroStringHelper.java:298)
	at hudson.plugins.perforce.utils.MacroStringHelper.substituteParameters(MacroStringHelper.java:148)
	at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:876)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1024)
	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:1198)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:122)

I've attached an example (jenkins-25747-example.tar) of the two jobs that I used to reproduce the error. It contains the two jobs that should be able to reproduce the error for you.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to