[JIRA] (JENKINS-42655) Active choices parameters not rendering after dsl generation

2020-04-23 Thread schulle...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Frank Schullerer commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Hi Helen, I changed it later to a "Execute Shell" command and within I execute curl:   

 

curl -k --user ':' --data-urlencode "script=$(< /home/jenkins/reloadJobs.groovy)" https://127.0.0.1:9443/scriptText 

 Nowadays, we have to authenticate to Jenkins via ID and API-Token. My  /home/jenkins/reloadJobs.groovy script on file system contains the Code:   

 

for (def job : Jenkins.instance.getItems())
{ job.doReload() }
 

     I hope it works for you too!   Frank      
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.179605.1489140109000.16338.1587632340569%40Atlassian.JIRA.


[JIRA] (JENKINS-42655) Active choices parameters not rendering after dsl generation

2020-04-23 Thread hvtur...@deloitte.co.uk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Helen edited a comment on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 [~franksch77] Could you please share more information about how you got this working as a post build step? I can execute the script in the script console and it works. However when I try to automate the process, it does not seem to work as expected.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.179605.1489140109000.16321.1587631560460%40Atlassian.JIRA.


[JIRA] (JENKINS-42655) Active choices parameters not rendering after dsl generation

2020-04-22 Thread hvtur...@deloitte.co.uk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Helen Turner commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Could you please share more information about how you got this working as a post build step?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.179605.1489140109000.15620.1587546420278%40Atlassian.JIRA.


[JIRA] (JENKINS-42655) Active choices parameters not rendering after dsl generation

2020-01-28 Thread schulle...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Frank Schullerer commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Same issue but I have a workaround: Execute the following in Jenkins script console after job creation: for (def job : Jenkins.instance.getItems())  { job.doReload() }   I also experiment with I post-build-groovy build-step do automate this after the auto creation of my jobs in a seed job (Jenkins DSL). It seems to work!    
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.179605.1489140109000.7261.1580208780462%40Atlassian.JIRA.


[JIRA] (JENKINS-42655) Active choices parameters not rendering after dsl generation

2019-10-24 Thread dequidt.rom...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Romain DEQUIDT commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Same issue here: 
 
Upload job via generated DSL job.  
Parameters aren't populated. 
Click Configure for job, and immediately save. Job notes that manual changes have been made. 
Parameters now are populated as expected by script. 
 Versions: Script Security Plugin - 1.54 Active Choices Plug-in - 2.1 Jenkins Version - 2.176.1 Any update?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.179605.1489140109000.290.1571919300296%40Atlassian.JIRA.


[JIRA] (JENKINS-42655) Active choices parameters not rendering after dsl generation

2019-09-23 Thread prashanthbg...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Prashanth Boodithi commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 I see the same issue, any workaround for this?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.179605.1489140109000.3295.1569246840449%40Atlassian.JIRA.


[JIRA] (JENKINS-42655) Active choices parameters not rendering after dsl generation

2019-01-02 Thread hlhamil...@hotmail.co.uk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Huseyin Hamilton edited a comment on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Hi,Is this still an issue? Besides the temporary solutions, I can't see anything to suggest it's been resolved and I seem to still come across the problem: * Upload job via generated DSL job.    * Parameters aren't populated. * Click Configure for job, and immediately save. Job notes that manual changes have been made. * Parameters now are populated as expected by script.If the issues are caused by the approval of the fallback script, that is slightly annoying because I've actually disabled the script approval process completely anyway but still get the issue.*Versions*: Script Security Plugin - 1.48 Active Choice Plugin - 2.1 Jenkins Version - 2.138.3   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2019-01-02 Thread hlhamil...@hotmail.co.uk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Huseyin Hamilton edited a comment on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Hi,Is this still an issue? Besides the temporary solutions, I can't see anything to suggest it's been resolved and I seem to still come across the problem: * Upload job via generated DSL job.  *     Parameters aren't populated. * Click Configure for job, and immediately save. Job notes that manual changes have been made. * Parameters now are populated as expected by script.If the issues are caused by the approval of the fallback script, that is slightly annoying because I've actually disabled the script approval process completely anyway but still get the issue.*Versions*:Script Security Plugin - 1.48 Active Choice Plugin - 2.1 Jenkins Version - 2.138.3   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2019-01-02 Thread hlhamil...@hotmail.co.uk (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Huseyin Hamilton commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Hi, Is this still an issue? Besides the temporary solutions, I can't see anything to suggest it's been resolved and I seem to still come across the problem: 
 
Upload job via generated DSL job.  
 
 
  Parameters aren't populated. 
Click Configure for job, and immediately save. Job notes that manual changes have been made. 
Parameters now are populated as expected by script. 
 If the issues are caused by the approval of the fallback script, that is slightly annoying because I've actually disabled the script approval process completely anyway but still get the issue. Versions: Script Security Plugin - 1.48 Active Choice Plugin - 2.1 Jenkins Version - 2.138.3    
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread piotr.tem...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Piotr Tempes commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Wow that was fast. Thanks for comprehensive explanations. I hope fix will go out soon. I'll be looking forward to it. Thanks again for quick research!  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita stopped work on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
Change By: 
 Bruno P. Kinoshita  
 
 
Status: 
 In Progress Open  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Linking issue JENKINS-42710. That's that for tonight Piotr Tempes, moving to the next issues for 1.5.4 for now. Hopefully we will fix it soon.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 What an exception generated by the script-security-plugin looks like: 

 
mar 13, 2017 10:23:55 PM org.biouno.unochoice.AbstractScriptableParameter eval
SEVERE: Error executing script for dynamic parameter
java.lang.RuntimeException: Failed to evaluate fallback script: script not yet approved for use
	at org.biouno.unochoice.model.GroovyScript.eval(GroovyScript.java:178)
	at org.biouno.unochoice.util.ScriptCallback.call(ScriptCallback.java:96)
	at org.biouno.unochoice.AbstractScriptableParameter.eval(AbstractScriptableParameter.java:239)
	at org.biouno.unochoice.AbstractScriptableParameter.getChoices(AbstractScriptableParameter.java:200)
	at org.biouno.unochoice.AbstractCascadableParameter.getChoicesForUI(AbstractCascadableParameter.java:150)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:335)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:175)
	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:108)
	at org.kohsuke.stapler.MetaClass$_javascript_ProxyMethodDispatcher.doDispatch(MetaClass.java:456)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
	at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:362)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:813)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
	at org.kohsuke.stapler.Stapler.service(Stapler.java:199)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:80)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
	at 

[JIRA] (JENKINS-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 For convenience, the script used: 

 

job('JENKINS-42655') {
parameters {
  activeChoiceParam('States') {
description('Name of the State')
filterable() 
choiceType('SINGLE_SELECT')
groovyScript {
  script('return ["Sao Paulo", "Rio de Janeiro"]')
  fallbackScript('"Error in script"')
}
  },
  activeChoiceReactiveParam('Cities') {
description('Name of the State')
filterable() 
choiceType('SINGLE_SELECT')
referencedParameters('States')
groovyScript {
  script('if (States.equals("Sao Paulo") { return ["Itu", "Araras"] } else { return ["Angra dos Reis"] }')
  fallbackScript('"Error in script"')
}
  }
  }
}
 

  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-42655  
 
 
  Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
Change By: 
 Bruno P. Kinoshita  
 
 
Attachment: 
 JENKINS-42655-config.xml  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-42655  
 
 
  Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
Change By: 
 Bruno P. Kinoshita  
 
 
Attachment: 
 JENKINS-42655-2.2-config.xml  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-42655  
 
 
  Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
Change By: 
 Bruno P. Kinoshita  
 
 
Attachment: 
 JENKINS-42655-diff.png  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-42655  
 
 
  Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
Change By: 
 Bruno P. Kinoshita  
 
 
Attachment: 
 JENKINS-42655-2.1-config.xml  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Well, that was fun  bug reproduced, I believe I know why that's happening. Not so complicated to fix... but no fast way to fix it. Here's the issue analysis (grab a coffee to read it). 
 
Downloaded jenkins.war (2.32.3.war) 
mkdir /tmp/123 
JENKINS_HOME=/tmp/123 java -jar jenkins.war 
Entered secret into form and submitted 
Installed suggested plugins (boy that takes a while) 
Created temp user 
Installed (without restart) active-choices-plugin 1.5.3 
Installed (without restart) job-dsl-plugin 
Manually stopped Jenkins, and started it again with same command #3 
Log in with user, all looking good 
Created Freestyle job JENKINS-42655 (see attached config.xml) 
Executed job, and found new job JENKINS-42655-1 
Never opened the job configuration, clicked on the "Generated Items link to JENKINS-42655-1" to open in a new tab 
Clicked on Build with Parameters 
Looked at logs, and noticed the security-script-plugin exceptions 
Went to "Manage Jenkins" / "In-process Script Approval" and approved scripts 
Went back to the JENKINS-42655-1 build with parameters screen, and everything worked as expected  
 Hummm. Issue more or less reproduced. Let's investigate more. 
 
Restarted Jenkins again 
Changed the JENKINS-42655 seed job configuration to use a different script 
Copied the config.xml file to another location 
Went to build with parameters, and now it was broken again 
Saved the job manually 
Copied the config.xml file to yet another location 
Went to build with parameters, and now it worked as reported in this issue 
 Now comes the interesting part. Looking at the diff. Attaching a screen shot so that others can have fun looking at it too. I installed Kompare as it has some cool features such as disabling diff for white spaces, blank lines, etc. The whole file changes as you save it. But if you ignore the number of white spaces... Then you can see that the Job DSL 

[JIRA] (JENKINS-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita started work on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
Change By: 
 Bruno P. Kinoshita  
 
 
Status: 
 Open In Progress  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita edited a comment on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 TIL someone added support to Active Choices in Job DSL Plug-in :-) (cc [~ioannis] I don't believe we have links for that in our docs :-) ) https://github.com/jenkinsci/job-dsl-plugin/tree/master/job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/parameterNote to self: update DSL when changing things in the plug-in, for backward compatibility.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 TIL someone added support to Active Choices in Job DSL Plug-in  (cc Ioannis Moutsatsos I don't believe we have links for that in our docs  )  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Very interesting! Bet it will be either extremely easy to fix it, or one of those bugs that requires a full stormy-rainy weekends here  Thanks Piotr  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread piotr.tem...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Piotr Tempes edited a comment on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Would be great if you fix it (and performance issues in the other thread as well ;P). Thanks for an answer. It good to know you are on it :) Anway Anyway  I am writing to give you a little update... there is one more thing I noticed - not only resave makes the job to render correctly, but running the job seems to force it to rerender as well... So first run (on incorrectly rendered form) is executed incorrectly - not rendered parameters are missing, but after this run job form is ok so consecutive runs are fine.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-13 Thread piotr.tem...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Piotr Tempes commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Would be great if you fix it (and performance issues in the other thread as well ;P). Thanks for an answer. It good to know you are on it  Anway I am writing to give you a little update... there is one more thing I noticed - not only resave makes the job to render correctly, but running the job seems to force it to rerender as well... So first run (on incorrectly rendered form) is executed incorrectly - not rendered parameters are missing, but after this run job form is ok so consecutive runs are fine.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-10 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Hopefully not related to JENKINS-39760 as you reported (thanks for providing detailed environment settings!!) 1.5.2. Will keep that in mind anyway.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-10 Thread brunodepau...@yahoo.com.br (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bruno P. Kinoshita commented on  JENKINS-42655  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
 Hi Piotr Tempes Thanks for the detailed report. Triaging issues this weekend for the next development cycle. I'm also a Job DSL user, so it might make it easier for me to work on this issue  Will investigate the problem in this next cycle, and hopefully submit a fix or update this ticket in the next days. Cheers Bruno  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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-42655) Active choices parameters not rendering after dsl generation

2017-03-10 Thread piotr.tem...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Piotr Tempes updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-42655  
 
 
  Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
Change By: 
 Piotr Tempes  
 

  
 
 
 
 

 
 I have just installed active-choices plugin and used it in conjunction with job dsl plugin.When I generate job with active choices plugin, fields do not render. Going into configuration and clicking save (without changing anything) fixes problem although it is frustrating bug because it needs to be done after each generation. Screens are attached.As you can see I am using   * 1 activeChoiceParam (single select) * 10 activeChoiceReactiveReferenceParam (formatted html) * 1 activeChoiceReactiveParam (checkbox)formatted html looks like this:return ''  I also found this issue - https://issues.jenkins-ci.org/browse/JENKINS-39760maybe it is related somehow.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





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

[JIRA] (JENKINS-42655) Active choices parameters not rendering after dsl generation

2017-03-10 Thread piotr.tem...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Piotr Tempes created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-42655  
 
 
  Active choices parameters not rendering after dsl generation   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Bruno P. Kinoshita  
 
 
Attachments: 
 after generation.jpg, after save.jpg  
 
 
Components: 
 active-choices-plugin  
 
 
Created: 
 2017/Mar/10 10:01 AM  
 
 
Environment: 
 Windows Server 2012 R2 64bit  JDK8 u112  Jenkins 2.49  active choices plugin 1.5.2  job dsl plugin 1.58  Jenkins run directly  no proxy  no slave nodes  Chrome browser 56.0.2924.87 (64-bit)  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Piotr Tempes  
 

  
 
 
 
 

 
 I have just installed active-choices plugin and used it in conjunction with job dsl plugin. When I generate job with active choices plugin, fields do not render. Going into configuration and clicking save (without changing anything) fixes problem although it is frustrating bug because it needs to be done after each generation. Screens are attached. As you can see I am using   
 
1 activeChoiceParam (single select) 
10 activeChoiceReactiveReferenceParam (formatted html) 
1 activeChoiceReactiveParam (checkbox) 
 formatted html looks like this: return ''