Class WinstoneDockerController
java.lang.Object
org.jenkinsci.test.acceptance.controller.JenkinsController
org.jenkinsci.test.acceptance.controller.LocalController
org.jenkinsci.test.acceptance.controller.WinstoneDockerController
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- IJenkinsController,- AutoCleaned,- LogListenable
Runs jenkins.war inside docker so that it gets a different IP address even though it's run on the same host.
 
For efficiency, the docker container gets the entire host file system bind-mounted on it, and we ssh into that box and start jenkins.
- Author:
- Kohsuke Kawaguchi
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class org.jenkinsci.test.acceptance.controller.LocalControllerLocalController.LocalFactoryImpl
- 
Field SummaryFields inherited from class org.jenkinsci.test.acceptance.controller.LocalControllerjenkinsHome, logWatcher, process, time, warFields inherited from class org.jenkinsci.test.acceptance.controller.JenkinsControllerisQuite, STARTUP_TIMEOUT, WORKSPACE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.jenkinsci.test.acceptance.docker.fixtures.JavaContainergetUrl()Gives URL where Jenkins is listening.voidsetDockerImage(String img) voidsetFixture(Class<? extends org.jenkinsci.test.acceptance.docker.fixtures.JavaContainer> fixtureType) org.jenkinsci.utils.process.ProcessInputStreamvoidstopNow()Synchronously shutdown Jenkins instance.Methods inherited from class org.jenkinsci.test.acceptance.controller.LocalControlleraddLogListener, commonLaunchEnv, diagnose, getJavaHome, getJenkinsHome, getSutHostName, isRunInstallWizard, onReady, populateJenkinsHome, postConstruct, removeLogListener, setRunInstallWizard, startNow, tearDownMethods inherited from class org.jenkinsci.test.acceptance.controller.JenkinsControllerclose, getInitialCredentials, getLogId, getLogPrinter, isRunning, restart, start, stop
- 
Constructor Details- 
WinstoneDockerController@Inject public WinstoneDockerController(com.google.inject.Injector i) 
 
- 
- 
Method Details- 
setFixturepublic void setFixture(Class<? extends org.jenkinsci.test.acceptance.docker.fixtures.JavaContainer> fixtureType) 
- 
setDockerImage
- 
startProcess- Specified by:
- startProcessin class- LocalController
- Throws:
- IOException
 
- 
stopNowDescription copied from class:JenkinsControllerSynchronously shutdown Jenkins instance.This method must leave JENKINS_HOME intact so that it can be started later. To really delete the data and clean up, see JenkinsController.tearDown().- Overrides:
- stopNowin class- LocalController
- Throws:
- IOException
 
- 
getContainerpublic org.jenkinsci.test.acceptance.docker.fixtures.JavaContainer getContainer()
- 
getUrlDescription copied from class:JenkinsControllerGives URL where Jenkins is listening. Must end with "/"- Specified by:
- getUrlin interface- IJenkinsController
- Specified by:
- getUrlin class- JenkinsController
 
 
-