Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
Jenkins 2.19.2 fresh install as a service on Windows 10
Description
Hello,
Here are the steps that make the active parameters groovy script disappear :
- Configure a new Jenkins 2 pipeline project
- Declare active parameters with groovy scripts
- Save
- (build)
- Restart Jenkins with the url : http://myjenkins:8080/restart
- The active parameters are still here, but the textareas containing the groovy scripts are blank
Thanks for your support
If it can help, I have this in jenkins.err.log when I save the job configuration :
nov. 06, 2016 9:19:34 AM org.biouno.unochoice.AbstractScriptableParameter getChoices AVERTISSEMENT: Script parameter with name 'Etape' is not an instance of java.util.Map. The parameter value is null nov. 06, 2016 9:19:34 AM org.biouno.unochoice.AbstractScriptableParameter getChoices AVERTISSEMENT: Script parameter with name 'SVN' is not an instance of java.util.Map. The parameter value is null nov. 06, 2016 9:19:43 AM org.jenkinsci.plugins.workflow.job.WorkflowRun finish
The active parameter declaration is the following :
Simple select
if (Type.equals("Build complet")) { return []; } else { return ["Etape 1", "Etape 2"] }
Attachments
Issue Links
- depends on
-
JENKINS-29407 Active Choices plugin doesn't work with Workflow Plugin
-
- Fixed but Unreleased
-
- is related to
-
JENKINS-39620 Saving a job with Active Choice 1.4 parameters after upgrade to v1.5 resets scriptlet parameters
-
- Closed
-
Code changed in jenkins
User: Bruno P. Kinoshita
Path:
src/findbugs/excludesFilter.xml
src/main/java/org/biouno/unochoice/model/GroovyScript.java
http://jenkins-ci.org/commit/active-choices-plugin/cac73ce953ce6419e14ad2ad7a12b0982fb8652b
Log:
[FIXED JENKINS-39620] and
JENKINS-39534Revert change that marked fields as transient, and add FindBugs exclusion filters