public static class ChecksAnnotation.ChecksAnnotationBuilder extends Object
ChecksAnnotation.| Constructor and Description |
|---|
ChecksAnnotationBuilder()
Constructs a builder for
ChecksAnnotation. |
public ChecksAnnotationBuilder()
ChecksAnnotation.public ChecksAnnotation.ChecksAnnotationBuilder withPath(String path)
path - the relative path of the file to annotation,
e.g. src/main/java/io/jenkins/plugins/checks/api/ChecksAnnotation.javapublic ChecksAnnotation.ChecksAnnotationBuilder withLine(int line)
line - the line of code to annotatepublic ChecksAnnotation.ChecksAnnotationBuilder withStartLine(Integer startLine)
startLine - the start line of code to annotatepublic ChecksAnnotation.ChecksAnnotationBuilder withEndLine(Integer endLine)
endLine - the end line of code to annotatepublic ChecksAnnotation.ChecksAnnotationBuilder withAnnotationLevel(ChecksAnnotation.ChecksAnnotationLevel level)
NOTICE, WARNING, or FAILURE.
The default is WARNING.level - the annotation levelpublic ChecksAnnotation.ChecksAnnotationBuilder withMessage(String message)
message - a short descriptionpublic ChecksAnnotation.ChecksAnnotationBuilder withStartColumn(Integer startColumn)
startColumn - the start column of the annotationpublic ChecksAnnotation.ChecksAnnotationBuilder withEndColumn(Integer endColumn)
endColumn - the end column of the annotationpublic ChecksAnnotation.ChecksAnnotationBuilder withTitle(String title)
Note that for a GitHub check run annotation, the title must not exceed 255 characters.
title - the title of the annotationpublic ChecksAnnotation.ChecksAnnotationBuilder withRawDetails(String rawDetails)
Note that for a GitHub check run annotation, the rawDetails must not exceed 64 KB.
rawDetails - the details about this annotationpublic ChecksAnnotation build()
ChecksAnnotation.ChecksAnnotationCopyright © 2016–2021. All rights reserved.