Class GitLabContainer
java.lang.Object
org.jenkinsci.test.acceptance.docker.DockerContainer
org.jenkinsci.test.acceptance.docker.fixtures.GitLabContainer
- All Implemented Interfaces:
Closeable,AutoCloseable
public class GitLabContainer
extends org.jenkinsci.test.acceptance.docker.DockerContainer
-
Constructor Summary
Constructors -
Method Summary
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
-
GitLabContainer
public GitLabContainer()
-
-
Method Details
-
host
-
sshPort
public int sshPort() -
httpPort
public int httpPort() -
httpHost
-
getHttpUrl
-
repoUrl
- Returns:
- Authenticated Git URL ("http://username:token@host:port/username/repo.git")
-
extractProjectPath
Extracts the GitLab project path from an authenticated Git repository URL.- Parameters:
repoUrl- seerepoUrl(String, String)- Returns:
- Project path ("username/repo")
-
waitForReady
- Throws:
MalformedURLException
-
createUserToken
public String createUserToken(String userName, String password, String email, String isAdmin) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-