Skip to content

[JENKINS-30069] versionnumber plugin should resolve vars from "envinject" plugin #127

Description

@jenkins-infra-bot

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions