public class JenkinsfileRunnerRule extends JenkinsEmbedder
contextPath, env, homeLoader, jenkins, localPort, MIME_TYPES, NO_PROPERTIES, recipes, server, tearDowns, testDescription, timeout| Constructor and Description |
|---|
JenkinsfileRunnerRule(File warDir,
File pluginsDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
after()
Skips the clean up.
|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
No time out and no output message
|
void |
before()
Override to set up your specific external resource.
|
protected org.eclipse.jetty.security.LoginService |
configureUserRealm()
Supply a dummy
LoginService that allows nobody. |
protected javax.servlet.ServletContext |
createWebServer()
Sets up Jetty without any actual TCP port serving HTTP.
|
configureUpdateCenter, createLocalLauncher, createTaskListener, createUniqueProjectName, getDisplayName, getIconFileName, getInstance, getPluginManager, getTestDescription, getURL, getUrlName, getWebAppRoot, interactiveBreak, isSomethingHappening, newHudson, pause, recipe, setPluginManager, setQuietPeriod, waitUntilNoActivity, waitUntilNoActivityUpTo, with, with, withExistingHome, withNewHome, withPresetDataprotected javax.servlet.ServletContext createWebServer()
throws Exception
createWebServer in class JenkinsEmbedderExceptionprotected org.eclipse.jetty.security.LoginService configureUserRealm()
LoginService that allows nobody.configureUserRealm in class JenkinsEmbedderpublic void before()
throws Throwable
JenkinsEmbedderbefore in class JenkinsEmbedderThrowable - if setup fails (which will disable afterpublic void after()
throws Exception
after in class JenkinsEmbedderExceptionpublic org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Copyright © 2004–2018. All rights reserved.