T - the type of the return value (may be Void)public abstract class HubotAbstractSynchronousNonBlockingStepExecution<T>
extends org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution<T>
SynchronousNonBlockingStepExecution,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected String |
buildUrl |
protected String |
buildUser |
protected boolean |
failOnError |
protected HubotService |
hubotService |
protected PrintStream |
logger |
protected String |
room |
protected String |
siteName |
| Modifier | Constructor and Description |
|---|---|
protected |
HubotAbstractSynchronousNonBlockingStepExecution(org.jenkinsci.plugins.workflow.steps.StepContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> ResponseData<T> |
logResponse(ResponseData<T> response)
Log code and error message if any.
|
protected static String |
prepareBuildUser(List<hudson.model.Cause> causes)
Return the current build user.
|
void |
setHubotService(HubotService service) |
protected <T> ResponseData<T> |
verifyCommon(BasicHubotStep step) |
getStatus, onResume, run, start, stopprotected transient PrintStream logger
protected transient String siteName
protected transient HubotService hubotService
protected transient boolean failOnError
protected transient String room
protected transient String buildUser
protected transient String buildUrl
protected HubotAbstractSynchronousNonBlockingStepExecution(org.jenkinsci.plugins.workflow.steps.StepContext context)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected <T> ResponseData<T> verifyCommon(BasicHubotStep step) throws hudson.AbortException
hudson.AbortExceptionpublic void setHubotService(HubotService service)
protected <T> ResponseData<T> logResponse(ResponseData<T> response) throws hudson.AbortException
response - hudson.AbortException - if failOnError is true and response is not successful.Copyright © 2016–2017 ThoughtsLive. All rights reserved.