Saving drafts and publishing a skill to the catalog

Save a skill in Cloudera Agent Studio as a private draft visible only to you, or publish it to the skill catalog as a version with a version number and scope.

The Save button in the editor of a skill is a menu that contains the items Save as draft and Publish to catalog.

  • A draft is private to you. The Version of a draft is N/A, and the draft is listed in the My Drafts section of the Skills page. When you save a draft, Agent Studio does not validate the skill, because a draft can be incomplete.
  • A published skill has a version number, for example v1.0.0, and a scope. The published skill is listed in the Skills section of the Skills page. When you publish a skill from the editor, Agent Studio validates the skill first. See Validating a skill.

When you click Back to catalog in the editor, Agent Studio saves the skill as a draft.

The procedure has the following methods.

  • To save a draft from the editor.
  • To publish a skill from the editor.
  • To publish a draft from the Skills page.
To save a draft from the editor:
  1. Launch the Cloudera Agent Studio console.
  2. In the left navigation pane, click Assets > Skill Catalog.
    The Skills page is displayed. Your draft skills are listed in the My Drafts section.
  3. In the row of the skill, click Actions, and then click Edit.
    The editor of the skill opens. The Save, Test, and Validate buttons are displayed at the top right of the editor. See Editing a skill.
  4. Click Save, and then click Save as draft.
    The Saved "name" as draft message is displayed.
To publish a skill from the editor:
  1. Launch the Cloudera Agent Studio console.
  2. In the left navigation pane, click Assets > Skill Catalog.
  3. In the row of the skill, click Actions, and then click Edit.
  4. Click Save, and then click Publish to catalog.
    Agent Studio validates the skill. If the skill passes the validation, the message Published "name" to catalog is displayed. If the validation reports issues, the Validation report dialog is displayed, and Agent Studio does not publish the skill.
  5. If the Validation report dialog is displayed, correct the issues in the editor, and then repeat step 4.
    To publish the skill without the validation, in the dialog, select Skip validation and publish anyway, and then click Publish to catalog. Cloudera recommends that you correct the issues instead.
  6. To return to the catalog, click Back to catalog next to the name of the skill.
To publish a draft from the Skills page:
  1. Launch the Cloudera Agent Studio console.
  2. In the left navigation pane, under Assets, click Skill Catalog.
  3. Optional: To display the skills in a table, click List view at the top right of the page.
  4. In the My Drafts section, in the row of the skill, click Actions, and then click Publish.
    The message Published "name" version (scope) is displayed with the version and the scope of the new catalog version.

Publishing creates a catalog version of the skill. The skill is displayed in the Skills section of the Skills page with a version number, for example v1.0.0, and a scope, for example User. The draft stays in the My Drafts section with the version N/A.

The scope and the version number are set as follows:

  • When you publish a draft from the Skills page, the scope of the new version is public if you already own a published skill with the same name and the Public scope. Otherwise, the scope is user.
  • If a version with the same number already exists, Agent Studio increases the version number automatically.

If the save or the publish fails, an error message is displayed. The message Save failed or the message of the server is displayed when a save fails, and the message Failed to publish "name" or the message of the server is displayed when the publishing a draft from the Skills page fails.