Updated on 2024-10-16 GMT+08:00

Configuring Deployment Policies

You can set policies to control how artifacts are uploaded to your repository, such as whether new artifacts can redeploy existing ones in the same path.

  1. Go to the self-hosted repo page. In the left pane, click the name of the target repository.
  2. Click Settings on the right of the page and click the Deployment Policies tab.

    Figure 1 Configuring deployment policies
    • Allow redeploy (enabled by default): Artifacts in the same path can be uploaded, replacing the original package.
    • Disable redeploy: Artifacts in the same path cannot be uploaded.
    • Read-only: Artifacts cannot be uploaded, updated, or deleted. You can download an uploaded artifact.

  3. Once you complete the settings, they are automatically saved by the system.