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_sessioncapability. 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:
To publish an agent from the agent editor:
To publish a draft from the Agent Catalog page:
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.
