Interface JobStep

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Implementing Classes:
    JobStep.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.62.0 (build 293ac17)",
               date="2022-07-16T00:20:23.470Z")
    @Stability(Stable)
    public interface JobStep
    extends software.amazon.jsii.JsiiSerializable
    A job step.
    • Method Detail

      • getContinueOnError

        @Stability(Stable)
        @Nullable
        default Boolean getContinueOnError()
        Prevents a job from failing when a step fails.

        Set to true to allow a job to pass when this step fails.

      • getEnv

        @Stability(Stable)
        @Nullable
        default Map<String,​String> getEnv()
        Sets environment variables for steps to use in the runner environment.

        You can also set environment variables for the entire workflow or a job.

      • getId

        @Stability(Stable)
        @Nullable
        default String getId()
        A unique identifier for the step.

        You can use the id to reference the step in contexts.

      • getIfValue

        @Stability(Stable)
        @Nullable
        default String getIfValue()
        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.

      • getName

        @Stability(Stable)
        @Nullable
        default String getName()
        A name for your step to display on GitHub.
      • getRun

        @Stability(Stable)
        @Nullable
        default String getRun()
        Runs command-line programs using the operating system's shell.

        If you do not provide a name, the step name will default to the text specified in the run command.

      • getTimeoutMinutes

        @Stability(Stable)
        @Nullable
        default Number getTimeoutMinutes()
        The maximum number of minutes to run the step before killing the process.
      • getUses

        @Stability(Stable)
        @Nullable
        default String getUses()
        Selects an action to run as part of a step in your job.

        An action is a reusable unit of code. You can use an action defined in the same repository as the workflow, a public repository, or in a published Docker container image.

      • getWith

        @Stability(Stable)
        @Nullable
        default Map<String,​Object> getWith()
        A map of the input parameters defined by the action.

        Each input parameter is a key/value pair. Input parameters are set as environment variables. The variable is prefixed with INPUT_ and converted to upper case.