Package sh.createos.jenkins.sandbox
Class CreateOSShStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
sh.createos.jenkins.sandbox.CreateOSShStep
- All Implemented Interfaces:
ExtensionPoint,Describable<org.jenkinsci.plugins.workflow.steps.Step>,Serializable
public class CreateOSShStep
extends org.jenkinsci.plugins.workflow.steps.Step
implements Serializable
Pipeline step that runs a shell script inside the active CreateOS sandbox.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescriptor for the createosSh Pipeline step.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
ConstructorsConstructorDescriptionCreateOSShStep(String script) Creates a shell step with the script to execute inside the sandbox. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidsetReturnStatus(boolean returnStatus) voidsetReturnStdout(boolean returnStdout) org.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context) Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
CreateOSShStep
Creates a shell step with the script to execute inside the sandbox.
-
-
Method Details
-
getScript
-
isReturnStatus
public boolean isReturnStatus() -
setReturnStatus
@DataBoundSetter public void setReturnStatus(boolean returnStatus) -
isReturnStdout
public boolean isReturnStdout() -
setReturnStdout
@DataBoundSetter public void setReturnStdout(boolean returnStdout) -
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) - Specified by:
startin classorg.jenkinsci.plugins.workflow.steps.Step
-