Interface JobStep
-
- All Superinterfaces:
JobStepConfiguration,software.amazon.jsii.JsiiSerializable,Step,StepConfiguration
- All Known Implementing Classes:
JobStep.Jsii$Proxy
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:43.107Z") @Stability(Experimental) public interface JobStep extends software.amazon.jsii.JsiiSerializable, Step, JobStepConfiguration
(experimental) JobSteps run as part of a GitHub Workflow Job.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classJobStep.BuilderA builder forJobStepstatic classJobStep.Jsii$ProxyAn implementation forJobStep
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static JobStep.Builderbuilder()default Map<String,String>getEnv()(experimental) Sets environment variables for steps to use in the runner environment.default StringgetId()(experimental) A unique identifier for the step.default StringgetIfValue()(experimental) You can use the if conditional to prevent a job from running unless a condition is met.default StringgetName()(experimental) A name for your step to display on GitHub.default StringgetWorkingDirectory()(experimental) Specifies a working directory for a step.-
Methods inherited from interface io.github.cdklabs.projen.github.workflows.JobStepConfiguration
getContinueOnError, getTimeoutMinutes
-
-
-
-
Method Detail
-
getEnv
@Stability(Experimental) @Nullable default Map<String,String> getEnv()
(experimental) Sets environment variables for steps to use in the runner environment.You can also set environment variables for the entire workflow or a job.
- Specified by:
getEnvin interfaceStepConfiguration
-
getId
@Stability(Experimental) @Nullable default String getId()
(experimental) A unique identifier for the step.You can use the id to reference the step in contexts.
- Specified by:
getIdin interfaceStepConfiguration
-
getIfValue
@Stability(Experimental) @Nullable default String getIfValue()
(experimental) You can use the if conditional to prevent a job from running unless a condition is met.You can use any supported context and expression to create a conditional.
- Specified by:
getIfValuein interfaceStepConfiguration
-
getName
@Stability(Experimental) @Nullable default String getName()
(experimental) A name for your step to display on GitHub.- Specified by:
getNamein interfaceStepConfiguration
-
getWorkingDirectory
@Stability(Experimental) @Nullable default String getWorkingDirectory()
(experimental) Specifies a working directory for a step.Overrides a job's working directory.
- Specified by:
getWorkingDirectoryin interfaceStepConfiguration
-
builder
@Stability(Experimental) static JobStep.Builder builder()
- Returns:
- a
JobStep.BuilderofJobStep
-
-