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.)-
Method Summary
Modifier and TypeMethodDescriptiondone()
Add an extra plugin manifest header.Plugin identifier (Short-Name
manifest header).Plugin version string (Plugin-Version
manifest header).
-
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
-
done
- Returns:
- back to the rule builder
-