public class JiraTestAction extends hudson.tasks.junit.TestAction implements ExtensionPoint, Describable<JiraTestAction>
Modifier and Type | Class and Description |
---|---|
static class |
JiraTestAction.JiraTestActionDescriptor
Descriptor for JiraTestAction
|
ExtensionPoint.LegacyInstancesAreScopedToHudson
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
|
FormValidation |
createIssue()
Method for creating an issue in jira, called from badge.jelly
|
Descriptor<JiraTestAction> |
getDescriptor()
Getter for the descriptor
|
String |
getDisplayName()
Getter for the url name
|
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 |
isTestFailing()
Getter to find is the test is failing
|
boolean |
isValidIssueKey(String issueKey)
Method for checking if a issue key is valid
|
FormValidation |
setIssueKey(String issueKey)
Method for linking an issue to this test, called from badge.jelly
|
annotate
public JiraTestAction(JiraTestData testData, hudson.tasks.junit.CaseResult test)
testData
- test
- the JUnit test associated with this TestActionpublic String getIssueStatus()
public String getStatusColor()
public EnvVars getEnvVars()
public hudson.tasks.junit.CaseResult getTest()
public String getIssueKey()
public String getIssueUrl()
public boolean isTestFailing()
public String getIssueSummary()
@JavaScriptMethod public FormValidation setIssueKey(String issueKey)
issueKey
- the key of the issue (ex. TST-256)@JavaScriptMethod public void clearIssueKey()
public String getIconFileName()
getIconFileName
in interface Action
public String getUrlName()
getUrlName
in interface Action
public String getDisplayName()
getDisplayName
in interface Action
getDisplayName
in interface ModelObject
public Descriptor<JiraTestAction> getDescriptor()
getDescriptor
in interface Describable<JiraTestAction>
@JavaScriptMethod public FormValidation createIssue()
FormValidation
with the result of the creation operationpublic boolean isValidIssueKey(String issueKey)
issueKey
- Copyright © 2016–2024. All rights reserved.