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 Review the CasC update log for more information.
displays the validation results for the previously applied bundles. Refer toHowever, CloudBees recommends some practices before using the bundle to configure a new CloudBees CI instance, operations center or controller, in a production environment.
-
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.
-
Understand the possible validation messages, warnings and errors by reviewing Troubleshoot CasC for the operations center and Troubleshoot CasC for controllers.
-
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:
-
Validation provided by the operations center when a controller CasC bundle is added to the operations center and made available for controllers, as described in Validating a controller bundle in the operations center.
-
Validation CasC CLI commands or validation CasC API requests.
-