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
Based on logs it is clear to me that the build configuration is not correct and this is why macro plugin reports the issue which might be passed over via other plugin.
Fix the configuration first