This plugin is injecting variables in form of artifactname+tail, so when artifactname has dash this variable become unusuable for shell.
It uses the parameter name for it, not the artifact name.
If i'm entering input value name as KEY then it must be a KEY, no magic substitution.
As they say in Wikipedia: citation needed. Its behavior is documented in the inline help, and the ParameterDefinition Javadoc only states:
The actual meaning and the purpose of parameters are entirely up to users, so what the concrete parameter implmentation is pluggable. Write subclasses in a plugin and put Extension on the descriptor to register them.
FWIW If you want parameter name = env variable set with input, that's a minor improvement at best, not a blocker bug.