Package io.jenkins.plugins.checks.api
Class ChecksOutput.ChecksOutputBuilder
- java.lang.Object
-
- io.jenkins.plugins.checks.api.ChecksOutput.ChecksOutputBuilder
-
- Enclosing class:
- ChecksOutput
public static class ChecksOutput.ChecksOutputBuilder extends Object
Builder forChecksOutput
.
-
-
Constructor Summary
Constructors Constructor Description ChecksOutputBuilder()
Construct a builder for aChecksOutput
.
-
Method Summary
-
-
-
Constructor Detail
-
ChecksOutputBuilder
public ChecksOutputBuilder()
Construct a builder for aChecksOutput
.
-
-
Method Detail
-
withTitle
public ChecksOutput.ChecksOutputBuilder withTitle(String title)
Sets the title of the check run.- Parameters:
title
- the title of the check run- Returns:
- this builder
-
withSummary
public ChecksOutput.ChecksOutputBuilder withSummary(String summary)
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
public ChecksOutput.ChecksOutputBuilder withSummary(TruncatedString summary)
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
public ChecksOutput.ChecksOutputBuilder withText(String text)
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
public ChecksOutput.ChecksOutputBuilder withText(TruncatedString text)
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
public ChecksOutput.ChecksOutputBuilder withAnnotations(List<ChecksAnnotation> annotations)
Sets theChecksAnnotation
for a check run.- Parameters:
annotations
- the annotations list- Returns:
- this builder
-
addAnnotation
public ChecksOutput.ChecksOutputBuilder addAnnotation(ChecksAnnotation annotation)
Adds aChecksAnnotation
.- Parameters:
annotation
- the annotation- Returns:
- this builder
-
withImages
public ChecksOutput.ChecksOutputBuilder withImages(List<ChecksImage> images)
Sets theChecksImage
for a check run.- Parameters:
images
- the images list- Returns:
- this builder
-
addImage
public ChecksOutput.ChecksOutputBuilder addImage(ChecksImage image)
Adds aChecksImage
.- Parameters:
image
- the image- Returns:
- this builder
-
build
public ChecksOutput build()
Actually builds theChecksOutput
with given parameters.- Returns:
- the built
ChecksOutput
-
-