[JIRA] [core] (JENKINS-25737) 'Run Parameter' build parameter is null when SCM/pre-SCM phase is started on remote-node.

2014-12-14 Thread dan...@beckweb.net (JIRA)














































Daniel Beck
 commented on  JENKINS-25737


Run Parameter build parameter is null when SCM/pre-SCM phase is started on remote-node.















Oleg: Could you elaborate on that please? What system Groovy script demonstrated this issue without Perforce?



























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.


[JIRA] [core] (JENKINS-25737) 'Run Parameter' build parameter is null when SCM/pre-SCM phase is started on remote-node.

2014-11-25 Thread o.v.nenas...@gmail.com (JIRA)














































Oleg Nenashev
 commented on  JENKINS-25737


Run Parameter build parameter is null when SCM/pre-SCM phase is started on remote-node.















Perforce plugin is not required to reproduce the issue. JENKINS-25732 will be fixed in the next version
A simple System Groovy build step can be used to reproduce the issue without a debugging.




























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.


[JIRA] [core] (JENKINS-25737) 'Run Parameter' build parameter is null when SCM/pre-SCM phase is started on remote-node.

2014-11-24 Thread jenk...@vampyred.net (JIRA)














































Mike Delaney
 updated  JENKINS-25737


Run Parameter build parameter is null when SCM/pre-SCM phase is started on remote-node.
















Change By:


Mike Delaney
(24/Nov/14 2:25 PM)




Summary:


RunParameterbuildparameterisnullwhenSCM/pre-SCMphaseisstarted
onremote-node
.



























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.


[JIRA] [core] (JENKINS-25737) 'Run Parameter' build parameter is null when SCM/pre-SCM phase is started on remote-node.

2014-11-24 Thread jenk...@vampyred.net (JIRA)














































Mike Delaney
 updated  JENKINS-25737


Run Parameter build parameter is null when SCM/pre-SCM phase is started on remote-node.
















Change By:


Mike Delaney
(24/Nov/14 2:44 PM)




Attachment:


jenkins-25747-example.tar



























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.


[JIRA] [core] (JENKINS-25737) 'Run Parameter' build parameter is null when SCM/pre-SCM phase is started on remote-node.

2014-11-24 Thread jenk...@vampyred.net (JIRA)














































Mike Delaney
 commented on  JENKINS-25737


Run Parameter build parameter is null when SCM/pre-SCM phase is started on remote-node.















Daniel,

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


	Start Jenkins (I ran hpi:run)
	Add a dump remote node
	Configure a job to use as a 'Run Parameter' reference.
	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
		
		
	
	
	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.


[JIRA] [core] (JENKINS-25737) 'Run Parameter' build parameter is null when SCM/pre-SCM phase is started on remote-node.

2014-11-24 Thread dan...@beckweb.net (JIRA)














































Daniel Beck
 commented on  JENKINS-25737


Run Parameter build parameter is null when SCM/pre-SCM phase is started on remote-node.















I guess this needs a Perforce client to work? Unless that's a two click install, that's a bit more effort than I'm willing to spend here.

However using NullSCM and breaking in checkout(...), then running build.getEnvironment(TaskListener.NULL) shows no undefined variable value. Using Jenkins ~1.591.

Could you try what happens on a recent Jenkins version (current LTS or weekly)?



























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.