Package org.jvnet.hudson.test
Class RealJenkinsRule.SyntheticPlugin
java.lang.Object
org.jvnet.hudson.test.RealJenkinsRule.SyntheticPlugin
- Enclosing class:
- RealJenkinsRule
Alternative to
RealJenkinsRule.addPlugins(java.lang.String...)
or TestExtension
that lets you build a test-only plugin on the fly.
(ExtensionList.add(Object)
can also be used for certain cases, but not if you need to define new types.)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd an extra plugin manifest header.Plugin identifier (Short-Name
manifest header).Plugin version string (Plugin-Version
manifest header).
-
Constructor Details
-
SyntheticPlugin
Creates a new synthetic plugin builder.- Parameters:
pkg
- the Java package containing any classes and resources you want included- See Also:
-
-
Method Details
-
shortName
Plugin identifier (Short-Name
manifest header). Defaults to being calculated from the package name, replacing.
with-
and prefixed bysynthetic-
. -
version
Plugin version string (Plugin-Version
manifest header). Defaults to an arbitrary snapshot version. -
header
Add an extra plugin manifest header. Examples:Jenkins-Version: 2.387.3
Plugin-Dependencies: structs:325.vcb_307d2a_2782,support-core:1356.vd0f980edfa_46;resolution:=optional
Long-Name: My Plugin
-