[JIRA] (JENKINS-37935) Referenced parameters not passed to groovy script for reactive refernence

2016-10-23 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita commented on  JENKINS-37935  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Referenced parameters not passed to groovy script for reactive refernence   
 

  
 
 
 
 

 
 What parameter type is VSIM_PROJ? The code is really useful for debugging this issue, but before trying it locally, it would be necessary to know the parameter type. And +1 for Ioannis's comment as well. We are working to have a better logging output, but in the meantime stick with the fallback script, and write your scripts defensively   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-37935) Referenced parameters not passed to groovy script for reactive refernence

2016-10-23 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37935  
 
 
  Referenced parameters not passed to groovy script for reactive refernence   
 

  
 
 
 
 

 
Change By: 
 Bruno P. Kinoshita  
 
 
Priority: 
 Major Minor  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-37935) Referenced parameters not passed to groovy script for reactive refernence

2016-10-23 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37935  
 
 
  Referenced parameters not passed to groovy script for reactive refernence   
 

  
 
 
 
 

 
Change By: 
 Bruno P. Kinoshita  
 

  
 
 
 
 

 
 Groovy script works in the script console but not in the Active Choices Reactive Reference Parameter.Log for the plugin gives:groovy.lang.MissingPropertyException: No such property: VSIM_PROJ for class: Script1Referenced Parameters: VSIM_PROJ,VSIM_BUILDgroovy script: {code} import jenkins.model.Jenkinsimport hudson.model.AbstractProjectimport hudson.model.Resultimport hudson.util.RunListAbstractProject otherJob = Jenkins.getInstance().getItemByFullName(VSIM_PROJ, AbstractProject.class)def otherBuild = otherJob.getBuildByNumber(VSIM_BUILD)def dispName = otherBuild.displayNamereturn "${dispName }" {code}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving 

[JIRA] (JENKINS-37935) Referenced parameters not passed to groovy script for reactive refernence

2016-09-08 Thread imoutsat...@msn.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Ioannis Moutsatsos commented on  JENKINS-37935  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Referenced parameters not passed to groovy script for reactive refernence   
 

  
 
 
 
 

 
 I would not trust the log output as currently it is 'contaminated' with several such messages even when things work. I would pay more attention to returning valid HTML when an AC-reactive reference is used. Also, use the fallback script option so that you at least get a better idea that the script works in the AC context. Finally use logic like: 

 

if (binding.variables.containsKey("VSIM_PROJ")){
//do things when the VSIM_PROJ var is in the script binding
}else{
//or else...
}

 

  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
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] (JENKINS-37935) Referenced parameters not passed to groovy script for reactive refernence

2016-09-02 Thread jason.gro...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jason Grosch created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-37935  
 
 
  Referenced parameters not passed to groovy script for reactive refernence   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Bruno P. Kinoshita  
 
 
Components: 
 active-choices-plugin  
 
 
Created: 
 2016/Sep/02 3:45 PM  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Jason Grosch  
 

  
 
 
 
 

 
 Groovy script works in the script console but not in the Active Choices Reactive Reference Parameter. Log for the plugin gives: groovy.lang.MissingPropertyException: No such property: VSIM_PROJ for class: Script1 Referenced Parameters: VSIM_PROJ,VSIM_BUILD groovy script: import jenkins.model.Jenkins import hudson.model.AbstractProject import hudson.model.Result import hudson.util.RunList AbstractProject otherJob = Jenkins.getInstance().getItemByFullName(VSIM_PROJ, AbstractProject.class) def otherBuild = otherJob.getBuildByNumber(VSIM_BUILD) def dispName = otherBuild.displayName return "$ {dispName } "  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment