Uses of Class
org.jvnet.hudson.test.junit.jupiter.RealJenkinsExtension
Packages that use RealJenkinsExtension
Package
Description
Test harness for Jenkins and its plugins.
-
Uses of RealJenkinsExtension in org.jvnet.hudson.test
Constructors in org.jvnet.hudson.test with parameters of type RealJenkinsExtensionModifierConstructorDescriptionTailLog
(RealJenkinsExtension rje, String job, int number) Watch a build expected to be loaded in a controller JVM. -
Uses of RealJenkinsExtension in org.jvnet.hudson.test.junit.jupiter
Methods in org.jvnet.hudson.test.junit.jupiter that return RealJenkinsExtensionModifier and TypeMethodDescriptionRealJenkinsExtension.addPlugins
(String... plugins) Add some plugins to the test classpath.RealJenkinsExtension.addSyntheticPlugin
(RealJenkinsExtension.SyntheticPlugin plugin) Adds a test-only plugin to the controller based on sources defined in this module.Set an extra environment variable.RealJenkinsExtension.https()
Sets up HTTPS for the current instance, and disables plain HTTP.RealJenkinsExtension.https
(String host, KeyStoreManager keyStoreManager, X509Certificate rootCA) Sets up HTTPS for the current instance, and disables plain HTTP.RealJenkinsExtension.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.RealJenkinsExtension.javaOptions
(String... options) Add some JVM startup options.RealJenkinsExtension.jenkinsOptions
(String... options) Add some Jenkins (including Winstone) startup options.RealJenkinsExtension.omitPlugins
(String... plugins) Omit some plugins in the test classpath.RealJenkinsExtension.prepareHomeLazily
(boolean prepareHomeLazily) AllowsJENKINS_HOME
initialization to be delayed untilstartJenkins()
is called for the first time.RealJenkinsExtension.withBootClasspath
(File... files) RealJenkinsExtension.withColor
(PrefixedOutputStream.AnsiColor color) Applies ANSI coloration to log lines produced by this instance, complementingwithName(java.lang.String)
.RealJenkinsExtension.withDebugPort
(int debugPort) Allows usage of a static debug port instead of a random one.RealJenkinsExtension.withDebugServer
(boolean debugServer) Allows to use debug in server mode or client mode.RealJenkinsExtension.withDebugSuspend
(boolean debugSuspend) Whether to suspend the controller VM on startup until debugger is connected.RealJenkinsExtension.withFIPSEnabled()
UsewithFIPSEnabled(FIPSTestBundleProvider)
with default value ofFIPSTestBundleProvider.get()
RealJenkinsExtension.withFIPSEnabled
(io.jenkins.test.fips.FIPSTestBundleProvider fipsTestBundleProvider) Sets a custom host name for the Jenkins root URL.RealJenkinsExtension.withHttpListenAddress
(String httpListenAddress) Provides a custom interface to listen to.RealJenkinsExtension.withJavaHome
(String JavaHome) Allows to specify a java home, defaults to JAVA_HOME if not usedRealJenkinsExtension.withLogger
(Class<?> clazz, Level level) RealJenkinsExtension.withLogger
(String logger, Level level) Sets a name for this instance, which will be prefixed to log messages to simplify debugging.RealJenkinsExtension.withPackageLogger
(Class<?> clazz, Level level) RealJenkinsExtension.withPort
(int port) Provides a custom fixed port instead of a random one.RealJenkinsExtension.withPrefix
(String prefix) Sets a custom prefix for the Jenkins root URL.RealJenkinsExtension.withTimeout
(int timeout) Adjusts the test timeout.Sets a custom WAR file to be used by the extension instead of the one in the path orwar/target/jenkins.war
in case of core.Methods in org.jvnet.hudson.test.junit.jupiter with parameters of type RealJenkinsExtensionModifier and TypeMethodDescriptionvoid
InboundAgentExtension.createAgent
(RealJenkinsExtension extension, String name) void
InboundAgentExtension.createAgent
(RealJenkinsExtension extension, InboundAgentExtension.Options options) void
InboundAgentExtension.start
(RealJenkinsExtension r, InboundAgentExtension.Options options) (Re-)starts an existing inbound agent.void
InboundAgentExtension.startOnly
(RealJenkinsExtension extension, InboundAgentExtension.Options options) Starts an existing inbound agent without waiting for it to go online.void
InboundAgentExtension.stop
(RealJenkinsExtension rjr, String name) Stop an existing inbound agent and wait for it to go offline.Constructors in org.jvnet.hudson.test.junit.jupiter with parameters of type RealJenkinsExtensionModifierConstructorDescriptionLinks this extension to another, withgetHome()
to be initialized by whichever copy starts first.