While not a requirement for using CLM with Nexus staging, CLM does have the ability to Fail or Warn on staging closure. This is managed by setting the Stage Release and Release actions for each policy. These policy actions can be configured to warn, fail, or do nothing (default). The figure below provides an example policy that would warn for a staging deployment and fail a release.
Configuration of Policy Actions is managed via the Sonatype CLM Server. While we’ll cover the basic settings below, for instruction on setting these actions, please review the Policy Management Guide, specifically the section on managing policy actions.
The configuration of the Stage Release action of a policy in the CLM Server is used for closing the staging repository. Based on the action chosen, the staging repository will respond as follows: