Uses of Class
com.atlassian.bamboo.task.TaskResultBuilder
-
Uses of TaskResultBuilder in com.atlassian.bamboo.task
Modifier and TypeMethodDescriptionTaskResultBuilder.checkInterceptorMatches
(@NotNull ContentMatchingInterceptor interceptor, int maximumAge) TaskResultBuilder.checkInterceptorNotMatches
(@NotNull ContentMatchingInterceptor interceptor, int maximumAge) TaskResultBuilder.checkReturnCode
(@NotNull com.atlassian.utils.process.ExternalProcess externalProcess) Checks that the return code of theExternalProcess
was zero Will only check return codes if the build state has not been set to Failed for some other reason.TaskResultBuilder.checkReturnCode
(@NotNull com.atlassian.utils.process.ExternalProcess externalProcess, int expectedReturnCode) Checks that the return code of theExternalProcess
was of the expected type.TaskResultBuilder.checkTestFailures()
Checks whether any test failures have been recorded against the buildResult and updates the state accordingly Will only check tests if the build state has not been set to Failed for some other reason.TaskResultBuilder.failed()
Sets the Task Result Status asTaskState.FAILED
TaskResultBuilder.failedWithError()
Sets the Task Result Status asTaskState.ERROR
static TaskResultBuilder
TaskResultBuilder.newBuilder
(@NotNull CommonTaskContext taskContext) Creates a new TaskResultBuilder for aCommonTaskContext
TaskResultBuilder.stopJobExecutionAfterTask()
stop job execution after this task result processingTaskResultBuilder.success()
Sets the Task Result Status asTaskState.SUCCESS