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.
- Ensure that your user has the Admin or Builder role. See User roles and capabilities.
- Ensure that you have a skill in your authoring workspace. See Creating a skill or Uploading a skill artifact.
- Before you publish, validate the skill. See Validating a skill.
- Ensure that the size of the skill is within the bundle size limit. The default limit is 64 MB.
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
publicif you already own a published skill with the same name and the Public scope. Otherwise, the scope isuser. - 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.
