Package io.jenkins.plugins.checks.api
Class ChecksOutput.ChecksOutputBuilder
java.lang.Object
io.jenkins.plugins.checks.api.ChecksOutput.ChecksOutputBuilder
- Enclosing class:
- ChecksOutput
Builder for
ChecksOutput
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAnnotation
(ChecksAnnotation annotation) Adds aChecksAnnotation
.addImage
(ChecksImage image) Adds aChecksImage
.build()
Actually builds theChecksOutput
with given parameters.withAnnotations
(List<ChecksAnnotation> annotations) Sets theChecksAnnotation
for a check run.withImages
(List<ChecksImage> images) Sets theChecksImage
for a check run.withSummary
(TruncatedString summary) Sets the summary of the check run, using aTruncatedString
.withSummary
(String summary) Sets the summary of the check runwithText
(TruncatedString text) Adds the details description for a check run, using aTruncatedString
.Adds the details description for a check run.Sets the title of the check run.
-
Constructor Details
-
ChecksOutputBuilder
public ChecksOutputBuilder()Construct a builder for aChecksOutput
.
-
-
Method Details
-
withTitle
Sets the title of the check run.- Parameters:
title
- the title of the check run- Returns:
- this builder
-
withSummary
Sets the summary of the check runNote that for the GitHub check runs, the
summary
supports Markdown.- Parameters:
summary
- the summary of the check run- Returns:
- this builder
-
withSummary
Sets the summary of the check run, using aTruncatedString
.Note that for the GitHub check runs, the
summary
supports Markdown.- Parameters:
summary
- the summary of the check run as aTruncatedString
- Returns:
- this builder
-
withText
Adds the details description for a check run. This parameter supports Markdown.Note that for a GitHub check run, the
text
supports Markdown.- Parameters:
text
- the details description in Markdown- Returns:
- this builder
-
withText
Adds the details description for a check run, using aTruncatedString
. This parameter supports Markdown.Note that for a GitHub check run, the
text
supports Markdown.- Parameters:
text
- the details description in Markdown as aTruncatedString
- Returns:
- this builder
-
withAnnotations
Sets theChecksAnnotation
for a check run.- Parameters:
annotations
- the annotations list- Returns:
- this builder
-
addAnnotation
Adds aChecksAnnotation
.- Parameters:
annotation
- the annotation- Returns:
- this builder
-
withImages
Sets theChecksImage
for a check run.- Parameters:
images
- the images list- Returns:
- this builder
-
addImage
Adds aChecksImage
.- Parameters:
image
- the image- Returns:
- this builder
-
build
Actually builds theChecksOutput
with given parameters.- Returns:
- the built
ChecksOutput
-