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
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, withSuccessMessagesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ExecutionResult
public ExecutionResult()Deprecated.
-
-
Method Details
-
failure
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
Deprecated.Mark the result as 'Failure'.- Parameters:
message- More details about the failure.- Returns:
- A new ExecutionResult instance, which is marked as 'Failure'.
-
success
Deprecated.Mark the result as 'Success'.- Parameters:
message- More details about the run.- Returns:
- A new ExecutionResult instance, which is marked as 'Success'.
-