jenkinsci / plugin-compat-tester

Jenkins Plugin Compatibility Tester
MIT License
46 stars 55 forks source link

Testing local or embedded plugins is exclusive #529

Closed jtnord closed 1 year ago

jtnord commented 1 year ago

if --local-checkout-dir is provided then we only check plugins that are in the directory specified (after filtering any includes/excludes) and ignore any plugins in the war

Also re-introduces a earlier simplification from @basil where the extractors will throw MetadataExtractionException if no plugins (after filtering) are found.

fixes #528

Tested manually with warnigns-ng both in a local checkout and not. the tests are only run from the local sources if --local-checkout-dir is provided, and fetches the git sources only if it is omitted.

Also manually tested filtering with a bogus plugin-id and a local checkout dir correctly errors in the tool.