Class BuildWarningParserTask
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
-
- com.atlassian.bamboo.specs.api.builders.task.Task<BuildWarningParserTask,BuildWarningParserTaskProperties>
-
- com.atlassian.bamboo.specs.builders.task.BuildWarningParserTask
-
public class BuildWarningParserTask extends Task<BuildWarningParserTask,BuildWarningParserTaskProperties>
Represents Bamboo task which scans logs and files for build warnings.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBuildWarningParserTask.WarningSeverity
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
-
Constructor Summary
Constructors Constructor Description BuildWarningParserTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull BuildWarningParserTaskPropertiesbuild()BuildWarningParserTaskdefaultRepository()Sets the repository for this task to plan's default repository.booleanequals(java.lang.Object o)BuildWarningParserTaskfailBuild(boolean failBuild)Enable this flag for the task to fail if the number of warnings exceeds a threshold.BuildWarningParserTaskfailBuildSeverity(@NotNull BuildWarningParserTask.WarningSeverity failBuildSeverity)Sets minimum severity of warnings that count towards fail build threshold.BuildWarningParserTaskfailBuildThreshold(int failBuildThreshold)Sets maximum number of warnings for which the build passes.inthashCode()BuildWarningParserTasknoRepository()Remove association with source repository.BuildWarningParserTaskparseFiles(@NotNull java.lang.String globPattern)Instruments the task to parse files matching a pattern for warnings.BuildWarningParserTaskparseLogs()Instruments the task to parse build log for warnings.BuildWarningParserTaskparser(@NotNull java.lang.String parser)Sets the parser.BuildWarningParserTaskrepository(@NotNull VcsRepositoryIdentifier repositoryIdentifier)Sets the repository for this task.BuildWarningParserTaskrepository(@NotNull java.lang.String repositoryName)Sets the repository for this task.-
Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
-
-
-
Method Detail
-
defaultRepository
public BuildWarningParserTask defaultRepository()
Sets the repository for this task to plan's default repository. Default repository is the repository which is the first on the list of plan's repositories.
-
repository
public BuildWarningParserTask repository(@NotNull @NotNull java.lang.String repositoryName)
Sets the repository for this task.
-
repository
public BuildWarningParserTask repository(@NotNull @NotNull VcsRepositoryIdentifier repositoryIdentifier)
Sets the repository for this task.
-
noRepository
public BuildWarningParserTask noRepository()
Remove association with source repository.
-
parser
public BuildWarningParserTask parser(@NotNull @NotNull java.lang.String parser)
Sets the parser.- Parameters:
parser- display name of the parser (as seen in the Bamboo UI)
-
parseLogs
public BuildWarningParserTask parseLogs()
Instruments the task to parse build log for warnings. Enabled by default.- See Also:
parseFiles(String)
-
parseFiles
public BuildWarningParserTask parseFiles(@NotNull @NotNull java.lang.String globPattern)
Instruments the task to parse files matching a pattern for warnings.- Parameters:
globPattern- glob pattern to match
-
failBuild
public BuildWarningParserTask failBuild(boolean failBuild)
Enable this flag for the task to fail if the number of warnings exceeds a threshold.- See Also:
failBuildThreshold(int),failBuildSeverity
-
failBuildThreshold
public BuildWarningParserTask failBuildThreshold(int failBuildThreshold)
Sets maximum number of warnings for which the build passes. Requires thefailBuildflag to be set to true.
-
failBuildSeverity
public BuildWarningParserTask failBuildSeverity(@NotNull @NotNull BuildWarningParserTask.WarningSeverity failBuildSeverity)
Sets minimum severity of warnings that count towards fail build threshold. Requires thefailBuildflag to be set to true.
-
build
@NotNull protected @NotNull BuildWarningParserTaskProperties build()
- Specified by:
buildin classTask<BuildWarningParserTask,BuildWarningParserTaskProperties>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classTask<BuildWarningParserTask,BuildWarningParserTaskProperties>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTask<BuildWarningParserTask,BuildWarningParserTaskProperties>
-
-