Validate a CasC bundle

1 minute read

Once you create a CasC bundle, regardless if the bundle was created manually or if you exported the bundle and transformed it, you should validate the bundle before using it to configure a new CloudBees CI instance.

CloudBees CI immediately validates the bundle when you use the bundle to configure a new CloudBees CI instance, operations center or controller. The Update log tab within the Manage Jenkins  CloudBees Configuration as Code displays the validation results for the previously applied bundles. Refer to Review the CasC update log for more information.

However, CloudBees recommends some practices before using the bundle to configure a new CloudBees CI instance, operations center or controller, in a production environment.

  1. Test CasC bundles in a test environment before using them in production. CloudBees CI versions in the test environment should be the same as the production environment.

  2. Understand the possible validation messages, warnings and errors by reviewing Troubleshoot CasC for the operations center and Troubleshoot CasC for controllers.

  3. Use the validation methods provided by CloudBees CI that allow some validation before using the bundle to configure a new CloudBees CI instance, operations center or controller. Methods such as: