-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins-CI 1.565.1, Scriptler 2.7, Windows
When a project configuration contains a Dynamic Parameter (Scriptler) parameter and uses one or more Scriptler script build steps the 'View Selected Script' link displayed in the build steps, link to the wrong script. It appears that the script displayed is the previous one used in the configuration sequence. Since the Dynamic Parameter (Scriptler) does not have a 'View selected script' option (which it should have!) we are dealing with a 'one-off' type of error due to the introduction of a Dynamic Parameter Scriptlet whose link is not tracked.
To clarify here is an example configuration file
Parameters
--Dynamic Parameter (Scriptler)
----uses Script_A
Build
--Scriptler Script: Step 1
----Uses Script_B
------'View' links to Script_A (instead of Script_B)
--Scriptler Script: Step 2
----Uses Script_C
------'View' links to Script_B (instead of Script_C)
- is related to
-
JENKINS-37027 'View selected script option' in build configuration displays wrong scriptler script
-
- Closed
-
I can reproduce the issue. While the parameter does not offer a 'view script' link, it uses the same form field name, confusing any Scriptler JavaScript. As the DP plugin is 'downstream' from Scriptler, it should fix this naming collision.
Unfortunately, the Dynamic Parameter plugin seems to be largely abandoned, and it being hosted on a different GitHub org means we cannot fix it.