Sonatype CLM Server - Policy Management

7.3. Creating a Condition Based on a Label

In the example below a new condition for the label Architecture-Approved will be added to an existing policy with an existing constraint and condition.

In our instructions, we’ve made an assumption that you understand how to create a policy.

figs/web/clm-server-label-condition-create.png

Figure 7.4. Creating a Label Condition


  1. Open an existing policy.
  2. In the Constraints area of the policy, click on the + icon, located next to the right of an existing condition.

    [Tip]

    Make sure you use the correct + icon, as it can be easy to add a new constraint by mistake.

  3. Now, in the Conditions area, change Label in the first drop down menu from Age to’Label'.
  4. Next, in the second drop down menu select is not for the operator.
  5. Finally, in the third drop down menu, select the Architecture-Approved label you just created.
  6. Click the Save button to finish.
[Tip]

Because our example uses a constraint with an existing condition, we have also chosen to force a violation only when all conditions have been met. In this scenario it may be appropriate to consider a waiver as an alternative.