Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Critical
-
Resolution: Cannot Reproduce
-
Component/s: build-name-setter-plugin, envinject-plugin
-
Labels:None
-
Environment:Jenkins 2.176.3, Ubuntu 14.04
Environment Injector Plugin - 2.2.1
Build Name and Description Setter - 2.0.3
GitPlugin - 3.12.1
GitClient Plugin - 2.9.0
TokenMacroPlugin 2.8
-
Similar Issues:
Description
We use a macro (${PACKAGE_VERSION}) to push a tag to git after a successful build.
This used to work, until we started getting this error:
... [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties file path 'build.properties' [EnvInject] - Variables injected successfully. Failed to evaluate name macro:org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Unrecognized macro 'PACKAGE_VERSION' in '#59 (***-${PACKAGE_VERSION})' Archiving artifacts
However, the EnvInject plugin is misbehaving, because - as you can plainly see - the content of the file is fine. So I'm guessing an EnvInject issue.
I don't which plugin is yours, but the issue is very much still happening, so please refrain from closing it until we've had a chance to fully examine and resolve.