public class BuildWarningParserTask extends Task<BuildWarningParserTask,BuildWarningParserTaskProperties>
Modifier and Type | Class and Description |
---|---|
static class |
BuildWarningParserTask.WarningSeverity |
conditions, description, requirements, taskEnabled
Constructor and Description |
---|
BuildWarningParserTask() |
Modifier and Type | Method and Description |
---|---|
protected BuildWarningParserTaskProperties |
build() |
BuildWarningParserTask |
defaultRepository()
Sets the repository for this task to plan's default repository.
|
boolean |
equals(Object o) |
BuildWarningParserTask |
failBuild(boolean failBuild)
Enable this flag for the task to fail if the number of warnings exceeds a threshold.
|
BuildWarningParserTask |
failBuildSeverity(BuildWarningParserTask.WarningSeverity failBuildSeverity)
Sets minimum severity of warnings that count towards fail build threshold.
|
BuildWarningParserTask |
failBuildThreshold(int failBuildThreshold)
Sets maximum number of warnings for which the build passes.
|
int |
hashCode() |
BuildWarningParserTask |
noRepository()
Remove association with source repository.
|
BuildWarningParserTask |
parseFiles(String globPattern)
Instruments the task to parse files matching a pattern for warnings.
|
BuildWarningParserTask |
parseLogs()
Instruments the task to parse build log for warnings.
|
BuildWarningParserTask |
parser(String parser)
Sets the parser.
|
BuildWarningParserTask |
repository(String repositoryName)
Sets the repository for this task.
|
BuildWarningParserTask |
repository(VcsRepositoryIdentifier repositoryIdentifier)
Sets the repository for this task.
|
conditions, description, enabled, requirements, toString
public BuildWarningParserTask defaultRepository()
public BuildWarningParserTask repository(@NotNull String repositoryName)
public BuildWarningParserTask repository(@NotNull VcsRepositoryIdentifier repositoryIdentifier)
public BuildWarningParserTask noRepository()
public BuildWarningParserTask parser(@NotNull String parser)
parser
- display name of the parser (as seen in the Bamboo UI)public BuildWarningParserTask parseLogs()
parseFiles(String)
public BuildWarningParserTask parseFiles(@NotNull String globPattern)
globPattern
- glob pattern to matchpublic BuildWarningParserTask failBuild(boolean failBuild)
failBuildThreshold(int)
,
failBuildSeverity
public BuildWarningParserTask failBuildThreshold(int failBuildThreshold)
failBuild
flag to be set to true.public BuildWarningParserTask failBuildSeverity(@NotNull BuildWarningParserTask.WarningSeverity failBuildSeverity)
failBuild
flag to be set to true.@NotNull protected BuildWarningParserTaskProperties build()
build
in class Task<BuildWarningParserTask,BuildWarningParserTaskProperties>
public boolean equals(Object o)
equals
in class Task<BuildWarningParserTask,BuildWarningParserTaskProperties>
public int hashCode()
hashCode
in class Task<BuildWarningParserTask,BuildWarningParserTaskProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.