-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins version 1.609
versionnumber-plugin evaluates the environment variables before the envinject-plugin injects them, if the envinject-plugin is configured to inject them from a source file checked out from SCM.
The versionnumber-plugin has a "Version Number Format String" field which can take environment variables as the input. Trying to inject the variable, results in a blank evaluation of the variable, because it's instantiated from the SCM sourced file after the versionnumber-plugin.
It would be nice if to alter the order in which these plugins are run so they can work together.
Did you try to use "EnvInject" job property? Such case should be working in 1.92