Method Failure
Failure(BuildStep, string)
Create a new instance of BuildStepResult that represent a failed execution.
Declaration
public static BuildStepResult Failure(BuildStep step, string message)
Parameters
Type | Name | Description |
---|---|---|
BuildStep | step | The BuildStep that was executed. |
string | message | The failure message. |
Returns
Type | Description |
---|---|
BuildStepResult | A new BuildStepResult instance. |
Failure(BuildStep, Exception)
Create a new instance of BuildStepResult that represent a failed execution.
Declaration
public static BuildStepResult Failure(BuildStep step, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
BuildStep | step | The BuildStep that was executed. |
Exception | exception | The exception. |
Returns
Type | Description |
---|---|
BuildStepResult | A new BuildStepResult instance. |