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
Constructors Constructor Description JiraContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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()
String
getToken()
URL
getURL()
void
waitForReady(CapybaraPortingLayer p)
Wait until JIRA becomes up and running.
-
-
-
Method Detail
-
getURL
public URL getURL() throws MalformedURLException
- Throws:
MalformedURLException
-
waitForReady
public void waitForReady(CapybaraPortingLayer p)
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
public void createProject(String key) throws IOException, javax.xml.rpc.ServiceException
- 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
public void createIssue(String key) throws IOException, javax.xml.rpc.ServiceException
- 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
public String getToken()
-
-