Exploring the CloudBees CD/RO DSL
The CloudBees CD/RO Domain Specific Language (DSL) can be used to manage configurations and also run CloudBees CD/RO APIs.
Examine the DSL for the release
- Use the breadcrumbs to navigate to the release definition, and then select DSL Editor from the banner at the top.
- Make an edit, such as setting the plannedEndDate to a later date. Select the Save icon to apply the change.
- Select Release Editor to view the change.
Export the project DSL
- Navigate to the project that you used to store the procedure, application, and release.
- Select DSL Export from the project Actions menu.
- Select Export. Save locally and examine the file contents.
Use the DSL IDE to create a procedure
- From the left navigation pane, select DevOps Essentials > DSL IDE.
- Select Procedure from the Examples dropdown to access the sample DSL code to create a procedure.
- Apply the DSL by selecting the Run button.
- From the main menu, navigate to DevOpsEssentials > Procedures.
- Use the filter to limit results to the Trial Project and the new procedure project, Hello Project. Select Apply.
- Select the Run button, and then select New Run.
- Select OK.
- Examine the log for the “Hello World” message.
Invoke the API command using the DSL IDE
- Navigate to the DSL IDE.
- Clear the editor and add the command
getUsers()
, and then apply the command. - From the Examples dropdown, select Collect Objects.