Details
-
Bug
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
None
Description
My pipeline defines a parameter with sth like:
parameters { booleanParam(name: 'RUN_TESTS', defaultValue: false, description: 'Do you want to run the build with tests?') }
Printing the param value with
script { if (params.RUN_TESTS) { echo "true: $RUN_TESTS" } else echo "false: $RUN_TESTS" }
shows that the value is always TRUE and the tests are always executed.
I think this is somewhat related to https://issues.jenkins-ci.org/browse/JENKINS-36543
So say I run a build without specifying parameters, it takes the default ones. Then I replay the same but I modify the script to have different default parameters. From a user perspective it s confusing if it does not take the new default values.
Maybe there should be condition for which if the replayed run was using the default parameters, those have to be computed again as the script may have changed.
In any case it s a minor, I let you decide if to close it or put it lowest priority.