I have a pipeline script that should work with and without parameters. So I have to check if the parameter is available.
I tried if(getBinding().hasVariable(\"mypa
if(getBinding().hasVariable(\"mypa
In the latest version of jenkins println(getBinding().hasVariable("myparameter")) is permitted and does not give an error any more.
println(getBinding().hasVariable("myparameter"))