public class JiraTestAction extends hudson.tasks.junit.TestAction implements hudson.ExtensionPoint, hudson.model.Describable<JiraTestAction>
| Modifier and Type | Class and Description |
|---|---|
static class |
JiraTestAction.JiraTestActionDescriptor
Descriptor for JiraTestAction
|
| Constructor and Description |
|---|
JiraTestAction(JiraTestData testData,
hudson.tasks.junit.CaseResult test)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearIssueKey()
Method for unlinking the issue associated with this test
|
hudson.util.FormValidation |
createIssue()
Method for creating an issue in jira, called from badge.jelly
|
hudson.model.Descriptor<JiraTestAction> |
getDescriptor()
Getter for the descriptor
|
String |
getDisplayName()
Getter for the url name
|
hudson.EnvVars |
getEnvVars()
Getter for environment variables
|
String |
getIconFileName()
Getter for the icon file name
|
String |
getIssueKey()
Getter for the issue key, called from badge.jelly
|
String |
getIssueStatus()
Getter for issue status, called from issueStatus.jelly
|
String |
getIssueSummary() |
String |
getIssueUrl()
Getter for the issue URL, called from badge.jelly
|
String |
getStatusColor()
Getter for issue color, called from issueStatus.jelly
|
hudson.tasks.junit.CaseResult |
getTest()
Getter for the JUnit test associated with this TestAction
|
String |
getUrlName()
Getter for the url name
|
boolean |
isValidIssueKey(String issueKey)
Method for checking if a issue key is valid
|
hudson.util.FormValidation |
setIssueKey(String issueKey)
Method for linking an issue to this test, called from badge.jelly
|
public JiraTestAction(JiraTestData testData, hudson.tasks.junit.CaseResult test)
testData - test - the JUnit test associated with this TestActionpublic String getIssueStatus()
public String getStatusColor()
public hudson.EnvVars getEnvVars()
public hudson.tasks.junit.CaseResult getTest()
public String getIssueKey()
public String getIssueUrl()
public String getIssueSummary()
@JavaScriptMethod public hudson.util.FormValidation setIssueKey(String issueKey)
issueKey - the key of the issue (ex. TST-256)@JavaScriptMethod public void clearIssueKey()
public String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getUrlName()
getUrlName in interface hudson.model.Actionpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic hudson.model.Descriptor<JiraTestAction> getDescriptor()
getDescriptor in interface hudson.model.Describable<JiraTestAction>@JavaScriptMethod public hudson.util.FormValidation createIssue()
public boolean isValidIssueKey(String issueKey)
issueKey - Copyright © 2016. All rights reserved.