PipelineStepModel class
Constructors
PipelineStepModel ({required String name , required String command , List <String > dependsOn = const [] , String ? description , bool uploadOutput = false , String ? outputPath , bool notifySlack = false , bool notifyTeams = false , String ? customExitCondition , bool ? stopOnFailure = true , Map <String , String > ? env , String ? workingDirectory , int ? timeout , int retry = 0 , int retryDelay = 5 , bool continueOnError = false , bool allowFailure = false , String ? condition })
PipelineStepModel.fromYaml (Map <String , dynamic > yamlMap )
factory
Properties
allowFailure
→ bool
If true, a failed step is marked as "warning" instead of "failure"
in the pipeline summary. Implies continue_on_error: true.
final
command
→ String
final
condition
→ String ?
Shell command to evaluate before running this step.
Step is only executed if this command exits with code 0.
If the condition fails, the step is skipped (not failed).
final
continueOnError
→ bool
If true, pipeline continues even if this step fails.
The step is marked as failed in the summary but doesn't halt execution.
final
customExitCondition
→ String ?
Custom Condition For exit condition
final
dependsOn
→ List <String >
final
description
→ String ?
Human-readable description shown in pipeline logs.
final
env
→ Map <String , String > ?
Per-step environment variables merged into the process environment.
final
hashCode
→ int
The hash code for this object.
no setter inherited
name
→ String
final
notifySlack
→ bool
Flag to notify Slack after this step.
final
notifyTeams
→ bool
Flag to notify Microsoft Teams after this step.
final
outputPath
→ String ?
Path of the save artifact.
final
retry
→ int
Number of retry attempts on failure. Defaults to 0 (no retries).
Must be >= 0.
final
retryDelay
→ int
Seconds to wait between retries. Defaults to 5.
Must be > 0.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
stopOnFailure
→ bool ?
Defaults to true
final
timeout
→ int ?
Timeout in seconds. The step is killed if it exceeds this duration.
Must be a positive integer when specified.
final
uploadOutput
→ bool
Flag to enable uploading for this step.
final
workingDirectory
→ String ?
Working directory for this step's command execution.
final