Uses of Class
org.jvnet.hudson.test.RealJenkinsRule
-
Uses of RealJenkinsRule in org.jvnet.hudson.test
Modifier and TypeMethodDescriptionRealJenkinsRule.addPlugins
(String... plugins) Add some plugins to the test classpath.RealJenkinsRule.SyntheticPlugin.done()
Set an extra environment variable.RealJenkinsRule.https()
Sets up HTTPS for the current instance, and disables plain HTTP.RealJenkinsRule.https
(String host, KeyStoreManager keyStoreManager, X509Certificate rootCA) Sets up HTTPS for the current instance, and disables plain HTTP.RealJenkinsRule.includeTestClasspathPlugins
(boolean includeTestClasspathPlugins) The intended use case for this is to use the plugins bundled into the warwithWar(File)
instead of the plugins in the pom.RealJenkinsRule.javaOptions
(String... options) Add some JVM startup options.RealJenkinsRule.jenkinsOptions
(String... options) Add some Jenkins (including Winstone) startup options.RealJenkinsRule.omitPlugins
(String... plugins) Omit some plugins in the test classpath.RealJenkinsRule.prepareHomeLazily
(boolean prepareHomeLazily) AllowsJENKINS_HOME
initialization to be delayed untilstartJenkins()
is called for the first time.RealJenkinsRule.withBootClasspath
(File... files) RealJenkinsRule.withColor
(PrefixedOutputStream.AnsiColor color) Applies ANSI coloration to log lines produced by this instance, complementingwithName(java.lang.String)
.RealJenkinsRule.withDebugPort
(int debugPort) Allows usage of a static debug port instead of a random one.RealJenkinsRule.withDebugServer
(boolean debugServer) Allows to use debug in server mode or client mode.RealJenkinsRule.withDebugSuspend
(boolean debugSuspend) Whether to suspend the controller VM on startup until debugger is connected.RealJenkinsRule.withFIPSEnabled()
UsewithFIPSEnabled(FIPSTestBundleProvider)
with default value ofFIPSTestBundleProvider.get()
RealJenkinsRule.withFIPSEnabled
(io.jenkins.test.fips.FIPSTestBundleProvider fipsTestBundleProvider) +Sets a custom host name for the Jenkins root URL.RealJenkinsRule.withHttpListenAddress
(String httpListenAddress) Provides a custom interface to listen to.RealJenkinsRule.withJavaHome
(String JavaHome) Allows to specify a java home, defaults to JAVA_HOME if not usedRealJenkinsRule.withLogger
(Class<?> clazz, Level level) RealJenkinsRule.withLogger
(String logger, Level level) Sets a name for this instance, which will be prefixed to log messages to simplify debugging.RealJenkinsRule.withPackageLogger
(Class<?> clazz, Level level) RealJenkinsRule.withPort
(int port) Provides a custom fixed port instead of a random one.RealJenkinsRule.withTimeout
(int timeout) Adjusts the test timeout.Sets a custom WAR file to be used by the rule instead of the one in the path orwar/target/jenkins.war
in case of core.Modifier and TypeMethodDescriptionvoid
InboundAgentRule.createAgent
(RealJenkinsRule rr, String name) void
InboundAgentRule.createAgent
(RealJenkinsRule rr, InboundAgentRule.Options options) void
InboundAgentRule.start
(RealJenkinsRule r, InboundAgentRule.Options options) (Re-)starts an existing inbound agent.void
InboundAgentRule.stop
(RealJenkinsRule rjr, String name) Stop an existing inbound agent and wait for it to go offline.ModifierConstructorDescriptionRealJenkinsRule
(RealJenkinsRule source) Links this rule to another, withgetHome()
to be initialized by whichever copy starts first.TailLog
(RealJenkinsRule rjr, String job, int number) Watch a build expected to be loaded in a controller JVM.