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.
Originally reported by
rspring, imported from: versionnumber plugin should resolve vars from "envinject" plugin
- status: Open
- priority: Minor
- component(s): envinject-plugin, versionnumber-plugin
- resolution: Unresolved
- votes: 4
- watchers: 4
- imported: 20251216-225446
Raw content of original issue
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.
- environment:
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.
Originally reported by
rspring, imported from: versionnumber plugin should resolve vars from "envinject" plugin
Raw content of original issue
Jenkins version 1.609