public abstract String value
/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,
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
dependency:copy to the
In most cases you do not need this annotation.
Simply add whatever plugins you are interested in testing against to your POM in
These, and their transitive dependencies, will be loaded in all
JenkinsRule tests 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.
Copyright © 2004–2022. All rights reserved.