public class JenkinsConnection
extends com.xebialabs.overthere.spi.BaseOverthereConnection
implements com.xebialabs.overthere.spi.OverthereConnectionBuilder
| Modifier and Type | Class and Description |
|---|---|
class |
JenkinsConnection.JenkinsOverthereProcess |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JENKINS_PROTOCOL |
static java.lang.String |
JOB_NAME
The name of the job.
|
static java.lang.String |
JOB_PARAMETERS
Additional parameters needed for teh Job, such as browser, environment, tags, ....
|
static java.lang.String |
TIMEOUT |
static java.lang.String |
UNIQUE_ID_PARAMETER
This parameter is set so we can track the job, based on the parameter provided.
|
canStartProcess, connectionTimeoutMillis, deleteTemporaryDirectoryOnDisconnect, mapper, options, os, protocol, random, streamBufferSize, temporaryDirectoryPath, temporaryFileCreationRetries, temporaryFileHolderDirectories, temporaryFileHolderDirectoryNamePrefix, temporaryFileHolderDirectoryNameSuffix, workingDirectory| Constructor and Description |
|---|
JenkinsConnection(java.lang.String protocol,
com.xebialabs.overthere.ConnectionOptions options,
com.xebialabs.overthere.spi.AddressPortMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
int |
buildJob(java.util.Map<java.lang.String,java.lang.Object> parameters) |
com.xebialabs.overthere.OverthereConnection |
connect() |
protected void |
doClose() |
protected java.io.File |
downloadJenkinsWorkspace(java.lang.String hostPath) |
void |
execute(java.util.Map<java.lang.String,java.lang.Object> parameters) |
protected void |
extract(java.io.File baseDir,
java.io.InputStream is) |
java.io.File |
getAbsoluteFileInLocalWorkspaceDirectory(java.lang.String path) |
com.xebialabs.overthere.OverthereFile |
getFile(com.xebialabs.overthere.OverthereFile parent,
java.lang.String child) |
com.xebialabs.overthere.OverthereFile |
getFile(java.lang.String hostPath) |
com.xebialabs.overthere.OverthereFile |
getFileForTempFile(com.xebialabs.overthere.OverthereFile parent,
java.lang.String name) |
com.xebialabs.overthere.OverthereProcess |
startProcess(com.xebialabs.overthere.CmdLine commandLine)
Starts a command with its argument and returns control to the caller.
|
com.xebialabs.overthere.OverthereProcess |
startProcess(java.util.Map<java.lang.String,java.lang.Object> jobParameters) |
java.lang.String |
toString() |
public static final java.lang.String JENKINS_PROTOCOL
public static final java.lang.String JOB_NAME
public static final java.lang.String UNIQUE_ID_PARAMETER
public static final java.lang.String JOB_PARAMETERS
public static final java.lang.String TIMEOUT
public JenkinsConnection(java.lang.String protocol,
com.xebialabs.overthere.ConnectionOptions options,
com.xebialabs.overthere.spi.AddressPortMapper mapper)
public com.xebialabs.overthere.OverthereFile getFile(java.lang.String hostPath)
getFile in interface com.xebialabs.overthere.OverthereConnectionpublic com.xebialabs.overthere.OverthereFile getFile(com.xebialabs.overthere.OverthereFile parent,
java.lang.String child)
getFile in interface com.xebialabs.overthere.OverthereConnectionpublic void execute(java.util.Map<java.lang.String,java.lang.Object> parameters)
public com.xebialabs.overthere.OverthereProcess startProcess(com.xebialabs.overthere.CmdLine commandLine)
startProcess in interface com.xebialabs.overthere.OverthereConnectionstartProcess in class com.xebialabs.overthere.spi.BaseOverthereConnectioncommandLine - the command line to execute.public com.xebialabs.overthere.OverthereProcess startProcess(java.util.Map<java.lang.String,java.lang.Object> jobParameters)
public com.xebialabs.overthere.OverthereConnection connect()
connect in interface com.xebialabs.overthere.spi.OverthereConnectionBuilderprotected void doClose()
doClose in class com.xebialabs.overthere.spi.BaseOverthereConnectionpublic com.xebialabs.overthere.OverthereFile getFileForTempFile(com.xebialabs.overthere.OverthereFile parent,
java.lang.String name)
getFileForTempFile in class com.xebialabs.overthere.spi.BaseOverthereConnectionpublic java.lang.String toString()
toString in interface com.xebialabs.overthere.OverthereConnectiontoString in class com.xebialabs.overthere.spi.BaseOverthereConnectionprotected java.io.File downloadJenkinsWorkspace(java.lang.String hostPath)
protected void extract(java.io.File baseDir,
java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic int buildJob(java.util.Map<java.lang.String,java.lang.Object> parameters)
public java.io.File getAbsoluteFileInLocalWorkspaceDirectory(java.lang.String path)