public class ScriptPluginNodeExecutor extends BaseScriptPlugin implements NodeExecutor
CONFIG_DEFAULT, CONFIG_DESCRIPTION, CONFIG_LABELS, CONFIG_NAME, CONFIG_PROP_PREFIX, CONFIG_RENDERING_OPTIONS, CONFIG_REQUIRED, CONFIG_SCOPE, CONFIG_TITLE, CONFIG_TYPE, CONFIG_VALUES, DESCRIPTION_PROP, SETTING_MERGE_ENVIRONMENT, TITLE_PROP
Constructor and Description |
---|
ScriptPluginNodeExecutor(ScriptPluginProvider provider,
Framework framework) |
Modifier and Type | Method and Description |
---|---|
NodeExecutorResult |
executeCommand(ExecutionContext executionContext,
java.lang.String[] command,
INodeEntry node)
Execute a command on a node and return the result.
|
NodeExecutorResult |
executeCommand(ExecutionContext executionContext,
java.lang.String[] command,
INodeEntry node,
boolean showError) |
boolean |
isAllowCustomProperties() |
boolean |
isUseConventionalPropertiesMapping() |
createScriptArgs, createScriptArgsList, createScriptDataContext, createScriptDataContext, createStepItemDataContext, getScriptExecHelper, prepareSecretBundle, prepareSecretBundleWorkflowNodeStep, prepareSecretBundleWorkflowStep, runPluginScript, setScriptExecHelper
createDescription, createDescription, createPluginData, getDescription, getFramework, getProvider, loadConfigData, loadContentConversionPropertyValues, loadInstanceDataFromNodeAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportVariableInjection
public ScriptPluginNodeExecutor(ScriptPluginProvider provider, Framework framework)
public boolean isAllowCustomProperties()
isAllowCustomProperties
in class AbstractDescribableScriptPlugin
public boolean isUseConventionalPropertiesMapping()
isUseConventionalPropertiesMapping
in class AbstractDescribableScriptPlugin
public NodeExecutorResult executeCommand(ExecutionContext executionContext, java.lang.String[] command, INodeEntry node)
NodeExecutor
executeCommand
in interface NodeExecutor
executionContext
- the execution contextcommand
- the array of strings for the command line, with any necessary data context references replaced.node
- the node to execute onpublic NodeExecutorResult executeCommand(ExecutionContext executionContext, java.lang.String[] command, INodeEntry node, boolean showError)