Working on processes in safe edit mode#

Safe editing enables you to test component processes before making them available in normal environments. Make updates to your component process, test those updates safely, and then promote to a new version when you are ready.

Enable Safe Edit mode by completing the following steps:

  1. Click Settings > System Settings. Select Enable Safe Edit of Component Processes, optionally selectRequire Approval to Promote Component Process and then click Save at the bottom of the System Settings page.
  2. If Require Approval to Promote Component Process is enabled, after a draft is promoted you see Promotion Pending where the Promote push button was. The Promotion Pending button is inactive while an approval is pending. Approval requests go to anyone with manage processes permission on component. Under Work Items, there is a new Component Process promotion table with Approve and Reject actions. These actions link to latest promoted version and draft processes for which promotion was requested.
  3. Two new parameters are displayed under the Component Settingsstarting in UrbanCode Deploy v. 7.0.2.1.
    1. Allow Process Locking. When this option is enabled you will be able to lock component processes for editing.
    2. Require Process Locking. When this option is enabled you will not be able to edit component processes without locking the process first.

Component Settings containing two new parameters.

You can edit component processes and component template processes without affecting deployments to protected environments.

  1. Under Environments, when you are editing the Enable Drafts Processes option, a new setting becomes available. After you select Enable Draft Procees, a new field, Component using Process Drafts, is displayed. Choose components for draft processes to run on.

  2. On the Components tab, click the component name.

  3. To Edit draft process, on the Processes tab, hover the cursor over the process to edit, and click the pencilicon, the pencil icon.

    Process Designer with draft process buttons

  4. Design your draft process, and then click Save.

  5. Test the process in the environment you set up in step one.

  6. When process works as expected, go back to the process designer, and click Promote.

    This action makes the process available for use or creates a promotion approval.

  7. Click Lock to lock draft.

    The name of the person who locked the draft is displayed under Locked By on the Processes page. Only the person who holds the lock can edit the process. Under Actions a Force Unlock option is available.

  8. Click Copy Latest Promoted Version To Draft to create a copy of that version at the head of the draft stream. Click Copy as Latest Draft on a promoted process to create a copy of that version at the head of the draft stream.

Environments that are set to allow draft processes can use draft process for deployments. Other environments must use the promoted processes.

Note: Snapshots can only lock to versions of component processes. They cannot lock to drafts. If a snapshot is deployed to an environment that allows drafts then one of these conditions apply:

Parent topic: Processes