hudson.plugins.groovy
Class GroovyTokenMacro

java.lang.Object
  extended by org.jenkinsci.plugins.tokenmacro.TokenMacro
      extended by org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
          extended by hudson.plugins.groovy.GroovyTokenMacro
All Implemented Interfaces:
hudson.ExtensionPoint

@Extension
public class GroovyTokenMacro
extends org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro

GROOVY token that evaluates groovy expressions.

Author:
Nigel Magnay

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro.Parameter
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 java.lang.String script
          Script to use.
 
Constructor Summary
GroovyTokenMacro()
           
 
Method Summary
 boolean acceptsMacroName(java.lang.String macroName)
           
 java.lang.String evaluate(hudson.model.AbstractBuild<?,?> context, hudson.model.TaskListener listener, java.lang.String macroName)
           
 
Methods inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
evaluate
 
Methods inherited from class org.jenkinsci.plugins.tokenmacro.TokenMacro
all, expand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

script

public java.lang.String script
Script to use.

Constructor Detail

GroovyTokenMacro

public GroovyTokenMacro()
Method Detail

acceptsMacroName

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

evaluate

public java.lang.String evaluate(hudson.model.AbstractBuild<?,?> context,
                                 hudson.model.TaskListener listener,
                                 java.lang.String macroName)
                          throws org.jenkinsci.plugins.tokenmacro.MacroEvaluationException,
                                 java.io.IOException,
                                 java.lang.InterruptedException
Specified by:
evaluate in class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
Throws:
org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
java.io.IOException
java.lang.InterruptedException


Copyright © 2011. All Rights Reserved.