Class PromotedEnvVarTokenMacro

  • All Implemented Interfaces:
    ExtensionPoint

    @Extension(optional=true)
    public class PromotedEnvVarTokenMacro
    extends org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
    Retrieves an environment variable from the Promotion build. The Promotion build is being determined by the current Executor, so the macro is tolerant against context switches when the variable is being resolved against the parent build instead of the Promotion. In other cases the macro will behave similarly to EnvironmentVariableMacro from Token Macro plugin.
    Author:
    Oleg Nenashev
    • Constructor Detail

      • PromotedEnvVarTokenMacro

        public PromotedEnvVarTokenMacro()
    • Method Detail

      • acceptsMacroName

        public boolean acceptsMacroName​(String macroName)
        Specified by:
        acceptsMacroName in class org.jenkinsci.plugins.tokenmacro.TokenMacro