T
- the type of the return value (may be Void
)public abstract class JiraStepExecution<T>
extends org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution<T>
SynchronousNonBlockingStepExecution
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected String |
buildUrl |
protected String |
buildUserId |
protected boolean |
failOnError |
JiraService |
jiraService |
protected PrintStream |
logger |
protected String |
siteName |
Modifier | Constructor and Description |
---|---|
protected |
JiraStepExecution(org.jenkinsci.plugins.workflow.steps.StepContext context) |
Modifier and Type | Method and Description |
---|---|
protected String |
addMeta(String message)
Adds Job info to the given message.
|
protected String |
addPanelMeta(String message)
Adds Job info to the given message.
|
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.
|
protected <T> ResponseData<T> |
verifyCommon(BasicJiraStep step)
Verifies the common input for all the stesp.
|
protected abstract <T> ResponseData<T> |
verifyInput() |
getStatus, onResume, run, start, stop
public transient JiraService jiraService
protected transient PrintStream logger
protected transient String siteName
protected transient boolean failOnError
protected transient String buildUserId
protected transient String buildUrl
protected JiraStepExecution(org.jenkinsci.plugins.workflow.steps.StepContext context) throws IOException, InterruptedException
IOException
InterruptedException
protected static String prepareBuildUser(List<hudson.model.Cause> causes)
causes
- build causes.protected <T> ResponseData<T> verifyCommon(BasicJiraStep step) throws hudson.AbortException
hudson.AbortException
- when failOnError is true and JIRA_SITE is missing.protected <T> ResponseData<T> logResponse(ResponseData<T> response) throws hudson.AbortException
hudson.AbortException
- if failOnError is true and response is not successful.protected String addPanelMeta(String message)
protected String addMeta(String message)
protected abstract <T> ResponseData<T> verifyInput() throws Exception
Exception
Copyright © 2016–2017 ThoughtsLive. All rights reserved.