-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins 2.479.2
scriptler 392.va_dce718b_3e40/scriptler.hpi
Other plugins as listed in plugins.txt
The ScriptlerPluginTest.parameterized() test in the acceptance test harness is failing with Scriptler plugin 392.va_dce718b_3e40 and Jenkins 2.488.
I confirmed with interactive steps that Scriptler plugin 376.v152edd95b_ca_f is able to create a parameterized script with Jenkins 2.479.2 and run the script.
Steps that I took to show the 376.v152edd95b_ca_f release works as expected:
- Create the plugins.txt file with a set of current plugins and scriptler plugin 376.v152edd95b_ca_f
- Create the run-jenkins.sh shell script that downloads the plugins from plugins.txt and runs Jenkins 2.479.2
- Run the run-jenkins.sh shell script and complete the setup wizard by creating a new user and downloading no additional plugins
- Open scriptler, create, and save a new script with id 'parameterized-script', name 'script-with-parameter', and script "println lhs + ' + ' + rhs;"
- Edit the newly created script and define 2 script parameters, "lhs" and "rhs" with values "11" and "7 respectively and save the script
- Approve the newly created script from the "Manage Jenkins" -> "In-process Script Approval"
- Run the newly created script, accept the default parameter values, and confirm that the output is as expected, "11 + 7"
Steps that I took to with the 392.va_dce718b_3e40 release:
- Create the bad-plugins.txt file with a set of current plugins and scriptler plugin 392.va_dce718b_3e40
- Create the bad-run-jenkins.sh shell script that downloads the plugins from bad-plugins.txt and runs Jenkins 2.488
- Run the bad-run-jenkins.sh shell script and complete the setup wizard by creating a new user and downloading no additional plugins
- Open scriptler, create, and save a new script with id 'parameterized-script', name 'parameterized-script-name', and script "println lhs + ' + ' + rhs;"
- Approve the newly created script from the "Manage Jenkins" -> "In-process Script Approval"
- Run the newly created script and attempt to define two parameters, see that the second parameter is not allowed
The crucial difference seems to be that on the very first scriptler script, the problem appears if I create the script, save it, approve it, and run the script without performing a second edit step.
The problem does not appear if I create the script, save it, edit the script to add parameters, save it, then run the script. The additional step to edit the script to add parameters seems to avoid the problem. I believe that is the closest approximation I have for the failure in ScriptlerPluginTest.parameterized() test in the acceptance test harness
When attempting to run the parameterized job without the second edit step, the UI looks like this: