bundle.yaml
The bundle.yaml
file is an index file that describes the bundle and references the other files in the bundle.
For controller CasC bundles, it can also be used to optionally configure bundle inheritance and bundle availability.
Property | Type | Description | ||||
---|---|---|---|---|---|---|
id |
string |
Required. This bundle’s unique identifier.
|
||||
version |
string |
Required. The bundle’s version. If a controller is configured with a bundle using the When the operations center generates an effective bundle (after calculating inheritance) for a controller, the For operations centers, this value should be incremented whenever the bundle is modified.
|
||||
apiVersion |
string |
Required. This is the bundle’s API version. Valid values are
|
||||
description |
string |
Optional. A helpful description of the bundle. |
||||
parent |
string |
Optional.
The parent bundle’s unique folder name. This property provides bundle inheritance for CasC bundles that are added to the operations center using the CasC bundle location.
With branch and tag support, the value of the
|
||||
allowCapExceptions |
boolean |
Optional.
Allows Beekeeper plugin exceptions in the controller’s
|
||||
availabilityPattern |
string |
Optional.
Specifies the regex availability pattern, to define the full path to one or more controllers in the operations center that can use the CasC bundle. This property provides bundle availability for CasC bundles that are added to the operations center using the CasC bundle location, and is not supported if using an HTTP API endpoint or a CLI command to upload a bundle to the operations center.
For more information, refer to Configure bundle availability for controllers. |
||||
jcasc |
list of strings |
Optional. This indicates the bundle contains a |
||||
jcascMergeStrategy |
string |
Optional. Defines the merge strategy when multiple Jenkins Configuration as Code files are included in a CasC bundle. For more information, refer to Merge Strategy.
|
||||
plugins |
list of strings |
Optional. This indicates the bundle contains a |
||||
catalog |
list of strings |
Optional.
This indicates the bundle contains a |
||||
items |
list of strings |
Optional. This indicates the bundle contains a |
||||
itemRemoveStrategy |
object |
Optional. This property is composed of the
This property has two sub-elements:
|
||||
rbac |
list of strings |
Optional. This indicates the bundle contains a |
||||
rbacRemoveStrategy |
object |
Optional. Valid values for this property are:
|
Example bundle.yaml file
bundle.yaml for a controller
id: "remove-bundle" version: "1" apiVersion: "1" description: "CasC bundle with removeStrategy in descriptor" allowCapExceptions: true availabilityPattern: "folder1/.*" parent: "bundle-global" jcasc: - "jenkins.yaml" jcascMergeStrategy: "errorOnConflict" plugins: - "plugins.yaml" catalog: - "plugin-catalog.yaml" itemRemoveStrategy: items: "remove-all" rbac: "sync" rbacRemoveStrategy: "sync" items: - "items.yaml" rbac: - "rbac.yaml" variables: - "variables.yaml"
bundle.yaml for an operations center
id: "bundle-1" version: "1" apiVersion: "2" description: "My CloudBees Configuration as Code (CasC) bundle" jcasc: - "jenkins.yaml" jcascMergeStrategy: "errorOnConflict" plugins: - "plugins.yaml" items: - "items.yaml" rbac: - "rbac.yaml" variables: - "variables.yaml"