This plugin allows metadata to be added to projects, builds and slaves in Jenkins.
The main idea of the metadata plugin is to make searching for jobs and builds to behave more like a database, and act as an enabler for other plugins.
We differentiate between MetadataDefinitions and MetadataValues. The idea comes from the parameter setup in Jenkins.
MetadataDefinitions are used by admins for making sure that certain metadata exist on all projects.
These are the metadata types currently available. More will be added, and plugin developers could add their own types.
All MetadataValues for a project will automatically get copied to each build on that project. Metadata for a project or a build can be
If "Expose to environment" is checked for a MetadataValue, the value will also be made available as an environment variable like this:
The search functionality is accessible through the "Metadata search" link.
Plugin developers can add their own MetadataDefinitions and Values, by extending either AbstractMetadataDefinition/Value directly or
This ExtensionPoint can be used when you want to automatically add Metadata to a project whenever the project is saved. Extend JobMetadataContributor,
This ExtensionPoint can be used when you want to automatically add Metadata to a build whenever it is finished. Extend BuildMetadataContributor,
Here is a list of features we would like to see in the Metadata plugin in the future:
Initial beta release
Skip to end of metadata Go to start of metadata