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 -
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull BuildWarningParserTaskPropertiesbuild()Sets the repository for this task to plan's default repository.booleanfailBuild(boolean failBuild) Enable this flag for the task to fail if the number of warnings exceeds a threshold.failBuildSeverity(@NotNull BuildWarningParserTask.WarningSeverity failBuildSeverity) Sets minimum severity of warnings that count towards fail build threshold.failBuildThreshold(int failBuildThreshold) Sets maximum number of warnings for which the build passes.inthashCode()Remove association with source repository.parseFiles(@NotNull String globPattern) Instruments the task to parse files matching a pattern for warnings.Instruments the task to parse build log for warnings.Sets the parser.repository(@NotNull VcsRepositoryIdentifier repositoryIdentifier) Sets the repository for this task.repository(@NotNull 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
-
Constructor Details
-
BuildWarningParserTask
public BuildWarningParserTask()
-
-
Method Details
-
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
Sets the repository for this task. -
repository
public BuildWarningParserTask repository(@NotNull @NotNull VcsRepositoryIdentifier repositoryIdentifier) Sets the repository for this task. -
noRepository
Remove association with source repository. -
parser
Sets the parser.- Parameters:
parser- display name of the parser (as seen in the Bamboo UI)
-
parseLogs
Instruments the task to parse build log for warnings. Enabled by default.- See Also:
-
parseFiles
Instruments the task to parse files matching a pattern for warnings.- Parameters:
globPattern- glob pattern to match
-
failBuild
Enable this flag for the task to fail if the number of warnings exceeds a threshold.- See Also:
-
failBuildThreshold(int)failBuildSeverity
-
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
- Specified by:
buildin classTask<BuildWarningParserTask,BuildWarningParserTaskProperties>
-
equals
- Overrides:
equalsin classTask<BuildWarningParserTask,BuildWarningParserTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCodein classTask<BuildWarningParserTask,BuildWarningParserTaskProperties>
-