-
New Feature
-
Resolution: Unresolved
-
Major
While a traditional project's config.xml can simply be inspected for plugins it is using, which is useful for example to ensure that the project is not loaded in an inappropriate server, this is not true of Pipeline scripts—steps it uses might be defined in various plugins, or metasteps like checkout might have configuration which refers to various plugins.
There should be a way for the job itself to declare which plugins it wants loaded. The simplest approach would simply be a step which fails if some of the requested plugins are missing or too old:
requirePlugins ['junit@1.6', 'parallel-test-executor']
However as this is logically part of the job configuration as a whole, rather than something to be executed at a particular point in the build, it might make more sense as a JobProperty; a build started with missing plugins would immediately fail with an informative message. Using a property does not preclude defining the list from the script itself, using the properties step.
The configuration form for the property or step could use JENKINS-31582 to inspect the last build and suggest which plugins to list.
- depends on
-
JENKINS-31582 Log / document the plugin usage in the flow nodes
- Resolved
- is duplicated by
-
JENKINS-51557 Plugin Dependency for pipeline files
- Fixed but Unreleased
- is related to
-
JENKINS-39920 Pipeline job type has no ability to specify the node labels it can run on
- Resolved
-
JENKINS-39921 Pipeline job type unable to run in specified docker image
- Resolved
- relates to
-
JENKINS-15003 Track and verify plugins mentioned in configuration XML
- Resolved
- links to