-
Bug
-
Resolution: Cannot Reproduce
-
Critical
-
None
-
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
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
What was the last version where it worked?
The 4.0.0-rc release is a deprecated version with known security issues (SECURITY-1534). Have you tried either updating to the latest pre-releases (git client plugin 3.0.0-beta12 and git plugin 4.0.0-beta12) or downgrading to the most recent production releases (git client plugin 2.9.0 and git plugin 3.12.1)?
Is the failing job a Freestyle job, a Pipeline job, a Multibranch Pipeline job, or some other type of job?
Based on the log message, it appears you're reading environment variables from a file named 'build.properties'. Is that correct?
Please provide more details so that others can duplicate the problem you're seeing.