Saving drafts and publishing an agent to the catalog

Save an agent as a draft that only you can view, or publish it to the Cloudera Agent Studio catalog as a versioned agent for other users.

The Save menu in the agent editor provides both options. Saving a draft skips validation, while publishing validates the agent first.

A draft and a published version differ in the following ways:

  • A draft is visible only to you in the My Drafts section. A published version is visible to users who can see the agent, according to its scope.
  • A draft does not have a version number (N/A). A published version has a version number (such as v1.0.0).
  • A draft has User scope. A published version has User or Public scope.
  • Validation is skipped for a draft. Validation is required for a published version, and a version that fails validation is rejected.
  • Make sure that you have the Admin or Builder role. Editing requires the view_authoring_session capability. For more information, see User roles and capabilities.
  • Create or upload the agent. For instructions, see Creating an agent.
  • Cloudera recommends validating the agent before publishing it. For instructions, see Validating an agent.
  • Make sure that the agent bundle is smaller than 64 MB.
To save a draft:
  1. Launch the Cloudera Agent Studio console.
  2. In the left navigation pane, Assets > Agent Catalog.
    The Agents page is displayed.
  3. In the row of the agent, click Actions to open the Actions menu, and then click Edit.
    If an authoring session is not ready, a progress dialog opens. Wait for the dialog to close. The agent editor page is displayed.
  4. Optional: Make your changes to the agent files.
    For more information, see Editing an agent.
  5. In the agent editor, click Save, and then click Save as draft.
    When the draft is saved, the message Saved "agent-name" as draft is displayed.
To publish an agent from the agent editor:
  1. In the agent editor, click Save, and then click Publish to catalog.
    Agent Studio validates the agent before it publishes the agent. When the publish completes, the message Published "agent-name" to catalog is displayed. If validation reports errors, the Validation report dialog box opens, and Agent Studio does not publish the agent. Fix the errors and publish again. To publish the agent without validation, select Skip validation and publish anyway, and then click Publish to catalog. Cloudera recommends fixing the errors before publishing. For instructions, see Validating an agent.
  2. To return to the catalog, click Back to catalog.
To publish a draft from the Agent Catalog page:
  1. In the left navigation pane, click Assets > Agent Catalog.
  2. In the My Drafts section, locate the row of the agent, and click Actions to open the Actions menu.
  3. Click Publish.

Publishing creates a catalog version of the agent. The agent appears in the Agents section of the Agent Catalog page with a version number.

  • The scope of the new version is Public if a published agent with the same name is already public. Otherwise, the scope is User.
  • If the validation fails, the publish does not complete, and the report lists the issues.