@Extension(optional=true)
public class GitBranchTokenMacro
extends org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
GIT_BRANCH token that expands to the branch(es) that was built.| Modifier and Type | Field and Description |
|---|---|
boolean |
all
If true, list up all the branches not just the first one.
|
boolean |
fullName
If true, include all the prefixes of the branch name
|
| Constructor and Description |
|---|
GitBranchTokenMacro() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsMacroName(String macroName) |
String |
evaluate(hudson.model.AbstractBuild<?,?> context,
hudson.model.TaskListener listener,
String macroName) |
evaluate, hasNestedContentpublic boolean all
public boolean fullName
public boolean acceptsMacroName(String macroName)
acceptsMacroName in class org.jenkinsci.plugins.tokenmacro.TokenMacropublic String evaluate(hudson.model.AbstractBuild<?,?> context, hudson.model.TaskListener listener, String macroName) throws org.jenkinsci.plugins.tokenmacro.MacroEvaluationException, IOException, InterruptedException
evaluate in class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacroorg.jenkinsci.plugins.tokenmacro.MacroEvaluationExceptionIOExceptionInterruptedExceptionCopyright © 2004-2015. All Rights Reserved.