When using git-parameter-plugin sometimes when opening "Build with Parameters" branch fetching fails with following error:
After investigation this happens because environment variables are fetched from lastBuild.
See net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition getEnvironment
To be more precise jobWrapper.getSomeBuildEnvironments() is at fault.
This is not valid, because if lastBuild node has incompatible PATH value to jenkins master node, then ssh will not be found and commands will fail.
In our case lastBuild node was a windows machine and jenkins master is a linux machine.