org.jenkinsci.plugins.tokenmacro.MacroEvaluationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Odd behavior with macro expansion
    via GitHub by twllight
    ,
  • Missing variables
    via GitHub by sudoash
    ,
  • I recently installed several plugin and jenkins updates (now on jenkins 2.4). It appears there is a conflict between build_timeout-plugin and the Token Macro Plugin. When I try and run job with a timeout I get the following: {color:#d04437}FATAL: Could not evaluate macro org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Unrecognized macro 'timeout' in '${timeout}' at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:207) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:246) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:232) at hudson.plugins.build_timeout.BuildTimeOutStrategy.expandAll(BuildTimeOutStrategy.java:108) at hudson.plugins.build_timeout.impl.AbsoluteTimeOutStrategy.getTimeOut(AbsoluteTimeOutStrategy.java:44) at hudson.plugins.build_timeout.BuildTimeoutWrapper$EnvironmentImpl.<init>(BuildTimeoutWrapper.java:166) at hudson.plugins.build_timeout.BuildTimeoutWrapper.setUp(BuildTimeoutWrapper.java:211) at hudson.model.Build$BuildExecution.doRun(Build.java:156) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1741) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) FATAL: Unrecognized macro 'timeout' in '${timeout}'{color} If I remove the build-timeout-plugin the error goes away.
    via by Ian McDonald,
    • org.jenkinsci.plugins.tokenmacro.MacroEvaluationException: Unrecognized macro 'FOO' in '$FOO' at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:198) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:233) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:222) at org.jenkinsci.plugins.stashNotifier.StashNotifier.lookupCommitSha1s(StashNotifier.java:287) at org.jenkinsci.plugins.stashNotifier.StashNotifier.processJenkinsEvent(StashNotifier.java:247) at org.jenkinsci.plugins.stashNotifier.StashNotifier.prebuild(StashNotifier.java:194) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:837) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:832) at hudson.model.Build$BuildExecution.doRun(Build.java:144) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98)
    No Bugmate found.