Runnable class

Runnable describes instructions for executing a specific script or container as part of a Task.

Constructors

Runnable({bool? alwaysRun, bool? background, Barrier? barrier, Container? container, String? displayName, Environment? environment, bool? ignoreExitStatus, Map<String, String>? labels, Script? script, String? timeout})
Runnable.fromJson(Map json_)

Properties

alwaysRun bool?
By default, after a Runnable fails, no further Runnable are executed.
getter/setter pair
background bool?
This flag allows a Runnable to continue running in the background while the Task executes subsequent Runnables.
getter/setter pair
barrier Barrier?
Barrier runnable.
getter/setter pair
container Container?
Container runnable.
getter/setter pair
displayName String?
DisplayName is an optional field that can be provided by the caller.
getter/setter pair
environment Environment?
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ignoreExitStatus bool?
Normally, a non-zero exit status causes the Task to fail.
getter/setter pair
labels Map<String, String>?
Labels for this Runnable.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
script Script?
Script runnable.
getter/setter pair
timeout String?
Timeout for this Runnable.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited