Class MultipleRetriedJobsResults
java.lang.Object
org.sourcelab.buildkite.api.client.response.MultipleRetriedJobsResults
Results set from retrying multiple jobs.
BuildkiteClientUtils.retryMultipleJobs(RetryMultipleJobsOptions, BuildkiteClient)-
Constructor Summary
ConstructorsConstructorDescriptionMultipleRetriedJobsResults(Map<String, Job> originalJobIdsMappedToUpdatedJobs, Map<String, BuildkiteException> originalJobIdsMappedToErrors) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleandidJobHaveError(String originalJobId) Check of a given Job id had an error.getErrorByOriginalJobId(String originalJobId) Get the error associated with the original job id.All the errors.Ids of the jobs that were retried.Original Job Id mapped to the error associated with it.Original Job Id mapped to the new retried job instance.getRetriedJobByOriginalJobId(String originalJobId) Get the Retried job instance by the original job id.All of the new retried job instances.booleanhasRetriedJob(String originalJobId) Check of a Retried job instance exists for the original job id.toString()
-
Constructor Details
-
MultipleRetriedJobsResults
public MultipleRetriedJobsResults(Map<String, Job> originalJobIdsMappedToUpdatedJobs, Map<String, BuildkiteException> originalJobIdsMappedToErrors) Constructor.- Parameters:
originalJobIdsMappedToUpdatedJobs- Original Job Id mapped to the updated Job.originalJobIdsMappedToErrors- Original Job Id mapped to any error that occurred during the request.
-
-
Method Details
-
getOriginalJobIds
Ids of the jobs that were retried.- Returns:
- Ids of the jobs that were retried.
-
hasRetriedJob
Check of a Retried job instance exists for the original job id.- Parameters:
originalJobId- Id of the job that was retried.- Returns:
- true if an instance exists, false if not.
-
getRetriedJobByOriginalJobId
Get the Retried job instance by the original job id.- Parameters:
originalJobId- Id of the job that was retried.- Returns:
- The new Job instance.
-
getOriginalJobIdsMappedToUpdatedJobs
Original Job Id mapped to the new retried job instance.- Returns:
- Original Job Id mapped to the new retried job instance.
-
getRetriedJobs
All of the new retried job instances.- Returns:
- All of the new retried job instances.
-
didJobHaveError
Check of a given Job id had an error.- Parameters:
originalJobId- Id of the job that was retried.- Returns:
- true if an error occurred/exists, false if not.
-
getErrorByOriginalJobId
Get the error associated with the original job id.- Parameters:
originalJobId- Id of the job that was retried.- Returns:
- The error that occurred.
-
getOriginalJobIdsMappedToErrors
Original Job Id mapped to the error associated with it.- Returns:
- Original Job Id mapped to the error associated with it.
-
getErrors
All the errors.- Returns:
- All the errors.
-
toString
-