JobResult class

The outcome of a single executed job, used to build the final summary.

Constructors

JobResult({required String taskKey, required String jobLabel, required String ref, required int exitCode, required Duration duration, required int attempts, required bool ignored, List<Artifact> artifacts = const [], bool resumed = false})
Creates a job outcome record.
JobResult.fromJson(Map<String, dynamic> json, {bool resumed = true})
factory

Properties

artifacts → List<Artifact>
Binaries produced by this job. Empty for publish jobs.
final
attempts → int
Number of attempts performed (1 when the job succeeded immediately).
final
duration → Duration
Wall clock time spent on the job, including retries.
final
exitCode → int
Exit code of the last attempt. 0 means success.
final
hashCode → int
The hash code for this object.
no setterinherited
ignored → bool
Whether the failure was tolerated because of continue-on-error.
final
isFatal → bool
Whether the job failed in a way that must fail the whole run.
no setter
jobLabel → String
Human readable job label, used in notifications and the JSON report.
final
ref → String
Operation key of the job, e.g. android.publish.
final
resumed → bool
Whether this result was restored from a previous successful run.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
succeeded → bool
Whether the job completed successfully.
no setter
taskKey → String
Key of the task the job belongs to.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Machine readable form used by distribute run --json.
toString() → String
A string representation of this object.
inherited

Operators

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