Class ExecutionResult
- java.lang.Object
-
- com.thoughtworks.go.plugin.api.response.Result
-
- com.thoughtworks.go.plugin.api.response.execution.ExecutionResult
-
@Deprecated public class ExecutionResult extends Result
Deprecated.Used to specify the result of an execution of a part of a plugin.
-
-
Constructor Summary
Constructors Constructor Description ExecutionResult()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ExecutionResultfailure(java.lang.String message)Deprecated.Mark the result as 'Failure'.static ExecutionResultfailure(java.lang.String message, java.lang.Exception exception)Deprecated.Mark the result as 'Failure'.static ExecutionResultsuccess(java.lang.String message)Deprecated.Mark the result as 'Success'.-
Methods inherited from class com.thoughtworks.go.plugin.api.response.Result
getMessages, getMessagesForDisplay, isSuccessful, withErrorMessages, withErrorMessages, withSuccessMessages, withSuccessMessages
-
-
-
-
Method Detail
-
failure
public static ExecutionResult failure(java.lang.String message, java.lang.Exception exception)
Deprecated.Mark the result as 'Failure'.- Parameters:
message- More details about the failure.exception- (currently not used)- Returns:
- A new ExecutionResult instance, which is marked as 'Failure'.
-
failure
public static ExecutionResult failure(java.lang.String message)
Deprecated.Mark the result as 'Failure'.- Parameters:
message- More details about the failure.- Returns:
- A new ExecutionResult instance, which is marked as 'Failure'.
-
success
public static ExecutionResult success(java.lang.String message)
Deprecated.Mark the result as 'Success'.- Parameters:
message- More details about the run.- Returns:
- A new ExecutionResult instance, which is marked as 'Success'.
-
-