public abstract class DeclarativeAgent<A extends DeclarativeAgent<A>> extends WithScriptDescribable<A> implements hudson.ExtensionPoint
DeclarativeAgentDescriptor - pluggable agent backends for Declarative Pipelines.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
doCheckout |
protected boolean |
inStage |
protected String |
subdirectory |
| Constructor and Description |
|---|
DeclarativeAgent() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFlags(DeclarativeAgent a) |
DeclarativeAgentDescriptor |
getDescriptor() |
WithScriptScript |
getScript(org.jenkinsci.plugins.workflow.cps.CpsScript cpsScript)
ONLY TO BE RUN FROM WITHIN A CPS THREAD.
|
String |
getSubdirectory() |
boolean |
hasScmContext(org.jenkinsci.plugins.workflow.cps.CpsScript script) |
void |
initialize(Map<String,DeclarativeOption> options,
boolean explicitAgentInStage) |
boolean |
isDoCheckout() |
boolean |
isInStage() |
boolean |
reuseRootAgent(Map<String,DeclarativeOption> options) |
void |
setDoCheckout(boolean doCheckout) |
void |
setInStage(boolean inStage) |
void |
setSubdirectory(String subdirectory) |
protected boolean inStage
protected boolean doCheckout
protected String subdirectory
public WithScriptScript getScript(org.jenkinsci.plugins.workflow.cps.CpsScript cpsScript) throws Exception
WithScriptDescribablegetScript in class WithScriptDescribable<A extends DeclarativeAgent<A>>Exception - if the script source cannot be loaded or we're called from outside a CpsThread.public void setInStage(boolean inStage)
public boolean isInStage()
public void initialize(Map<String,DeclarativeOption> options, boolean explicitAgentInStage)
public boolean reuseRootAgent(Map<String,DeclarativeOption> options)
public void setDoCheckout(boolean doCheckout)
public boolean isDoCheckout()
public void setSubdirectory(String subdirectory)
public String getSubdirectory()
public void copyFlags(@Nonnull DeclarativeAgent a)
public boolean hasScmContext(org.jenkinsci.plugins.workflow.cps.CpsScript script)
public DeclarativeAgentDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<A extends DeclarativeAgent<A>>getDescriptor in class WithScriptDescribable<A extends DeclarativeAgent<A>>Copyright © 2016–2020. All rights reserved.