Package io.jenkins.plugins.checks.steps
Class PublishChecksStep.StepChecksAnnotation
java.lang.Object
hudson.model.AbstractDescribableImpl<PublishChecksStep.StepChecksAnnotation>
io.jenkins.plugins.checks.steps.PublishChecksStep.StepChecksAnnotation
- All Implemented Interfaces:
Describable<PublishChecksStep.StepChecksAnnotation>
,Serializable
- Enclosing class:
- PublishChecksStep
public static class PublishChecksStep.StepChecksAnnotation
extends AbstractDescribableImpl<PublishChecksStep.StepChecksAnnotation>
implements Serializable
A simple wrapper for
ChecksAnnotation
to allow users add code annotations by PublishChecksStep
.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Descriptor forPublishChecksStep.StepChecksAnnotation
, required for Pipeline Snippet Generator. -
Constructor Summary
ConstructorDescriptionStepChecksAnnotation
(String path, int startLine, int endLine, String message) Creates an annotation with required parameters. -
Method Summary
Modifier and TypeMethodDescriptionGetChecksAnnotation
built with user-provided parameters inPublishChecksStep
.int
getPath()
int
getTitle()
void
setAnnotationLevel
(ChecksAnnotation.ChecksAnnotationLevel annotationLevel) void
setEndColumn
(Integer endColumn) void
setRawDetails
(String rawDetails) void
setStartColumn
(Integer startColumn) void
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
StepChecksAnnotation
@DataBoundConstructor public StepChecksAnnotation(String path, int startLine, int endLine, String message) Creates an annotation with required parameters.- Parameters:
path
- path of the file to annotatestartLine
- start line of the annotationendLine
- end line of the annotationmessage
- annotation message
-
-
Method Details
-
setStartColumn
-
setEndColumn
-
setTitle
-
setRawDetails
-
setAnnotationLevel
@DataBoundSetter public void setAnnotationLevel(ChecksAnnotation.ChecksAnnotationLevel annotationLevel) -
getPath
-
getStartLine
public int getStartLine() -
getEndLine
public int getEndLine() -
getMessage
-
getStartColumn
-
getEndColumn
-
getTitle
-
getRawDetails
-
getAnnotationLevel
-
getAnnotation
GetChecksAnnotation
built with user-provided parameters inPublishChecksStep
.- Returns:
- the annotation built with provided parameters
-