Class JiraContainer
java.lang.Object
org.jenkinsci.test.acceptance.docker.DockerContainer
org.jenkinsci.test.acceptance.docker.fixtures.JiraContainer
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class JiraContainer
extends org.jenkinsci.test.acceptance.docker.DockerContainer
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createIssue
(String key) void
createIssue
(String key, String summary, String description) Creates a new issue in JIRAvoid
createProject
(String key) void
createProject
(String key, String displayName) Creates a project in JIRAList<hudson.plugins.jira.soap.RemoteComment>
getComments
(String ticket) hudson.plugins.jira.soap.JiraSoapService
getSvc()
getToken()
getURL()
void
Wait until JIRA becomes up and running.Methods inherited from class org.jenkinsci.test.acceptance.docker.DockerContainer
assertRunning, close, cp, getCid, getIpAddress, getLogfile, getPid, inspect, ipBound, ipUdpBound, ipv6Enabled, port, resource, sharingHostDockerService, toString, udpPort
-
Constructor Details
-
JiraContainer
public JiraContainer()
-
-
Method Details
-
getURL
- Throws:
MalformedURLException
-
waitForReady
Wait until JIRA becomes up and running. -
createProject
public void createProject(String key, String displayName) throws IOException, javax.xml.rpc.ServiceException Creates a project in JIRA- Parameters:
key
- All caps JIRA project unique key like "JENKINS"displayName
- Human readable description.- Throws:
IOException
javax.xml.rpc.ServiceException
-
createProject
- Throws:
IOException
javax.xml.rpc.ServiceException
-
createIssue
public void createIssue(String key, String summary, String description) throws IOException, javax.xml.rpc.ServiceException Creates a new issue in JIRA- Throws:
IOException
javax.xml.rpc.ServiceException
-
createIssue
- Throws:
IOException
javax.xml.rpc.ServiceException
-
getComments
public List<hudson.plugins.jira.soap.RemoteComment> getComments(String ticket) throws IOException, javax.xml.rpc.ServiceException - Throws:
IOException
javax.xml.rpc.ServiceException
-
getSvc
public hudson.plugins.jira.soap.JiraSoapService getSvc() -
getToken
-