Annotation Type WithPlugin
String valueFilenames of the plugins to install. These are expected to be of the form
/plugins/workflow-job.jpiis a test classpath resource. (The basename should be a plugin short name and the extension should be
Committing that file to SCM (say,
src/test/resources/plugins/sample.jpi) is reasonable for small fake plugins built for this purpose and exercising some bit of code. If you wish to test with larger archives of real plugins, this is possible for example by binding
In most cases you do not need this annotation. Simply add whatever plugins you are interested in testing against to your POM in
testscope. These, and their transitive dependencies, will be loaded in all
JenkinsRuletests in this plugin. This annotation is useful if only a particular test may load the tested plugin, or if the tested plugin is not available in a repository for use as a test dependency.