public static class ChecksDetails.ChecksDetailsBuilder extends Object
ChecksDetails.| 构造器和说明 |
|---|
ChecksDetailsBuilder()
Construct a builder for
ChecksDetails. |
public ChecksDetailsBuilder()
ChecksDetails.public ChecksDetails.ChecksDetailsBuilder withName(String name)
Note that for GitHub check runs, the name shown on GitHub UI will be the same as this attribute and GitHub uses this attribute to identify a check run, so make sure this name is unique, e.g. "Coverage".
name - the check's nameNullPointerException - if the name is nullpublic ChecksDetails.ChecksDetailsBuilder withStatus(ChecksStatus status)
Note that for a GitHub check run, if the status is not set, the default "queued" will be used.
status - the check's statusNullPointerException - if the status is nullpublic ChecksDetails.ChecksDetailsBuilder withDetailsURL(String detailsURL)
Note that for a GitHub check run, the url must use http or https scheme.
If the details url is not set, the Jenkins build url will be used, e.g. https://ci.jenkins.io/job/Core/job/jenkins/job/master/2000/.
detailsURL - the url using http or https schemeNullPointerException - if the detailsURL is nullpublic ChecksDetails.ChecksDetailsBuilder withStartedAt(LocalDateTime startedAt)
startedAt - the time when a check startsNullPointerException - if the startAt is nullpublic ChecksDetails.ChecksDetailsBuilder withConclusion(ChecksConclusion conclusion)
Note that for a GitHub check run, the conclusion should only be set when the status
was ChecksStatus.COMPLETED.
conclusion - the conclusionNullPointerException - if the conclusion is nullpublic ChecksDetails.ChecksDetailsBuilder withCompletedAt(LocalDateTime completedAt)
completedAt - the time when a check completesNullPointerException - if the completedAt is nullpublic ChecksDetails.ChecksDetailsBuilder withOutput(ChecksOutput output)
output - an output of a checkNullPointerException - if the outputs is nullpublic ChecksDetails.ChecksDetailsBuilder withActions(List<ChecksAction> actions)
actions - a list of actionsNullPointerException - if the actions is nullpublic ChecksDetails.ChecksDetailsBuilder addAction(ChecksAction action)
ChecksAction.action - the actionpublic ChecksDetails build()
ChecksDetail.ChecksDetailCopyright © 2016–2020. All rights reserved.