@java.lang.SuppressWarnings("NoDef") @groovy.transform.AutoClone class StepWrapper extends TemplatePrimitive
A library step
Modifiers | Name | Description |
---|---|---|
protected java.util.LinkedHashMap |
config |
The library configuration |
protected HookContext |
hookContext |
optional HookContext. assumes nondefault value if this step was invoked because of a lifecycle hook |
protected boolean |
isDefaultStep |
|
protected boolean |
isLibraryStep |
|
protected boolean |
isSandboxed |
|
protected boolean |
isTemplateStep |
|
protected java.lang.String |
sourceFile |
The FilePath where the source text for this library step can be found |
protected java.lang.String |
sourceText |
Alternatively, store the source text in a variable. |
protected StageContext |
stageContext |
optional StageContext. assumes nondefault value of this step is running as part of a Stage |
protected StepContext |
stepContext |
current step's metadata |
Fields inherited from class | Fields |
---|---|
class TemplatePrimitive |
overloaded |
class org.jenkinsci.plugins.workflow.cps.GlobalVariable |
ALL |
Type | Name and description |
---|---|
StepWrapperScript |
script A caching of the parsed source text used during invocation |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getLibrary() |
|
java.lang.String |
getName() |
|
java.lang.Class |
getPrimitiveClass() |
|
StepWrapperScript |
getScript(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution exec = null) |
|
java.lang.Object |
getValue(org.jenkinsci.plugins.workflow.cps.CpsScript script, java.lang.Boolean skipOverloaded = false) |
|
StepWrapperScript |
parseSource(org.jenkinsci.plugins.workflow.cps.CpsFlowExecution exec = null) recompiles the StepWrapperScript if missing. |
|
void |
setHookContext(HookContext hookContext) |
|
void |
setSandboxed(boolean sandboxed) |
|
void |
setStageContext(StageContext stageContext) |
|
void |
setStepContext(StepContext stepContext) |
|
java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class TemplatePrimitive |
getParentChain, getValue, isOverloaded, setOverloaded |
class org.jenkinsci.plugins.workflow.cps.GlobalVariable |
org.jenkinsci.plugins.workflow.cps.GlobalVariable#getName(), org.jenkinsci.plugins.workflow.cps.GlobalVariable#getValue(org.jenkinsci.plugins.workflow.cps.CpsScript), org.jenkinsci.plugins.workflow.cps.GlobalVariable#forRun(hudson.model.Run), org.jenkinsci.plugins.workflow.cps.GlobalVariable#forJob(hudson.model.Job), org.jenkinsci.plugins.workflow.cps.GlobalVariable#byName(java.lang.String, hudson.model.Run), org.jenkinsci.plugins.workflow.cps.GlobalVariable#wait(long), org.jenkinsci.plugins.workflow.cps.GlobalVariable#wait(long, int), org.jenkinsci.plugins.workflow.cps.GlobalVariable#wait(), org.jenkinsci.plugins.workflow.cps.GlobalVariable#equals(java.lang.Object), org.jenkinsci.plugins.workflow.cps.GlobalVariable#toString(), org.jenkinsci.plugins.workflow.cps.GlobalVariable#hashCode(), org.jenkinsci.plugins.workflow.cps.GlobalVariable#getClass(), org.jenkinsci.plugins.workflow.cps.GlobalVariable#notify(), org.jenkinsci.plugins.workflow.cps.GlobalVariable#notifyAll() |
The library configuration
optional HookContext. assumes nondefault value if this step was invoked because of a lifecycle hook
The FilePath where the source text for this library step can be found
Alternatively, store the source text in a variable. e.g. NullStep's and Default Step Implementation
optional StageContext. assumes nondefault value of this step is running as part of a Stage
current step's metadata
A caching of the parsed source text used during invocation
recompiles the StepWrapperScript if missing. This typically only happens if Jenkins has ungracefully restarted and the pipeline is resuming