Status: Open (View Workflow)
Environment:jenkins-cli version 2.150.1
jenkins version 2.150.1
Operating system: macOS, Ubuntu 16.04 (64bits)
openjdk version "15.0.1" 2020-10-20
OpenJDK Runtime Environment (build 15.0.1+9)
OpenJDK 64-Bit Server VM (build 15.0.1+9, mixed mode, sharing)
When using the jenkins-cli to build jobs, it works great only with passed parameters that are not pre-filled on our job panel.
both work fine.
Doesn't work because a pre-filled value is already assigned to prefilled_parameter.
And the following error is thrown:
Expected: one can pass any parameter as long as the key exist in the expected list, and any value should overwrite the default pre-filled values.
Side note: the REST API does not show such behaviour.
Possible related source code location: https://github.com/jenkinsci/jenkins/blob/022a09cec0919e9bed7ce6535e13a19055b4190b/core/src/main/java/hudson/cli/BuildCommand.java#L114