Creating a Service Catalog Item
Use the CloudBees CD/RO Service Catalog to package up easy-to-use functionality such as:
Creating models from parameterized templates
Create models from templates by wrapping DSL code that is executed by a Service Catalog item.
Running custom automation
Invoke a procedure from a Service Catalog item to implement automated tasks.
In this lab you will create a Service Catalog, and then create and run a procedure based Service Catalog item using the procedure you created earlier.
Create a new catalog
- Select the Service catalog link from the banner at the top.
- Create a new catalog by selecting the plus button (+) in the upper right.
- Select Create new on the New Catalog dialog.
- Provide a name for the catalog such as Trial Catalog and select your Trial Project target project for it, and then click OK.
Add a catalog item
- After you create the Trial Catalog the Service Catalog Item dialog appears. Enter a name, such as Hello Catalog Item, an item description and then click the Define button.
- The New Catalog item definition dialog appears.
- In the Display section, locate the Select Button Label field. Select Execute.
The Button Label of a Service Catalog Item is just a descriptive label of what end users should expect as an outcome of using the Service Catalog Item and does not in any way control what the Service Catalog item does. Also, besides the explicit options there is also an Other… option that allows you to provide whatever label you want.
- Next, in the search input for the icon, enter Automation and select the Automation icon.
- Scroll down to the Definition section.
- Select the Procedure option on the left, and then select the project and procedure you created in the previous lab.
There are three types of Service Catalog Item definitions: DSL, Plugin and Procedure. You can learn more here.
- Select OK to save the Service Catalog Item definition.
Run the Service Catalog item
- At the top of the Service Catalog page, select View Catalog.
- Click the Execute button of the Service Catalog item you just created.
- Select OK.
- The Job Details appear. Verify that the procedure ran as expected.