code: public String substitute(AbstractBuild<?,?> build, String text) {
          return Util.replaceMacro(text,createVariableResolver(build));
      }
docs: Performs a variable substitution to the given text and return it.