Setting up software analysis as a code delivery precondition

Set up software analysis as a code delivery precondition.

Before you begin

Install Developer for z/OS® and Engineering Workflow Management in a shell-sharing environment.
Note: Due to current limitations on Engineering Workflow Management installations, you need to use a P2 installation of Engineering Workflow Management.

Procedure

To set up software analysis as a code delivery precondition, set up the COBOL Code Review rules to run as a precondition.

Note: Setting up software analysis as a code delivery precondition works the same way for COBOL Software Metrics and PL/I Code Review rules.

  1. Configure a connection to an Engineering Workflow Management project area. Right-click the project area and select Open. You must have administrator rights to modify the project area.
  2. Go to the Process Configuration tab and select Team Configuration > Operation Behavior.
  3. Select Preconditions and follow-up actions are configured for this operation. In the Preconditions section, select Add…. On the Add Preconditions window. Select Require Satisfactory Software Analyzer Result and clickOK.
  4. Select rules under COBOL Code Review to run when a COBOL file is delivered. If wanted, modify the Severity Threshold to control how severe a rule violation must be before Engineering Workflow Management prevents delivery.
  5. Save the project area.

Results

When a COBOL file is delivered to the repository, the software analyzer runs on the client, and Engineering Workflow Management prevents the delivery of the code if any software analyzer results exceed the Severity Threshold. If delivery is prevented, the Team Advisor view notifies the developer.

Note: When you are configuring a Software Analysis precondition in a project area, it is important to remember that Software Analysis runs on the Developer for z/OS/Engineering Workflow Management client. If a custom rule or category that is configured in the administrator’s preferences is selected in the precondition, those custom rules must be exported to the clients (custom rules can be exported to the clients by using push-to-client). Similarly, if the administrator selects custom-written rules, those plug-ins must also be installed on the Developer for z/OS/Engineering Workflow Management clients