Configuring the project
To configure a project
Use the following procedure to configure the project to validate application SQL run against Db2 for z/OS environment.
- From the Dashboard in the Jenkins web user interface:
- Select the project you want to configure.
- Click Configure.
- Select the General tab.
- (Optional) Enter a project description.
(Optional) To use parameters in the project:
- Select the This project is parameterized check box.
- Click Add Parameter .
From the list, select the type of parameter.
- For the new parameter, enter values for the following fields:
Name
- Default Value
- Description
- Select the Build tab to add and configure the build steps as follows:
Click Add build step.
Add build steps and enter values for the fields:
BMC AMI DevOpsCommon - Authentication
BMC AMI DevOpsCommon - Authentication (Credential Store)
(BMC.DB2.SPE2404) BMC AMI DevOpsCommon - File Transmission
BMC AMI SQL Assurance for Db2- Analyze Static SQL
BMC AMI SQL Assurance for Db2- Analyze Dynamic SQL
(BMC.DB2.SPE2404) BMC AMI DevOpsCommon - JCL Execution
- BMC AMI DevOpsCommon - Clean Up
Add BMC AMI DevOps Common - Clean Up as the last build step in your project to delete the workfile.properties file after processing all the other build steps.
- Click Apply to save the project, or Save to save and close the project.
Examples of how to add build steps during project configuration
The following examples illustrate how to add build steps to the project configuration.
For information about configuring the fields in each build step, see step 3 of the procedure to configure the project.
To use the configuration provided in the sample project
BMC has provided you with a ready-made sample project for your reference and convenience. The sample project folder contains the config.xml file for the project. You can customize the configuration available in the sample project instead of configuring a new project.
Follow this procedure to use the sample project:
Copy the project folder to the following directory:
- Restart the Jenkins server and log in to Jenkins.
The sample project appears on the Dashboard in the Jenkins web user interface. Open the project for configuration.
- Update the values of the fields based on your requirements. For more information, see To configure a project.
For the full list of sample values that you can configure for the different fields in the project, see Sample projects for Jenkins.
To run build steps in Debug mode
To view additional diagnostic information, you can run any or all the build steps in the Debug mode. To enable this feature, do one of the following:
- To run any build step in Debug mode, when configuring the build step, select the Run Step in Debug Mode check box.
- To run all the build steps in Debug mode:
When configuring the project, add a Boolean parameter with the following field values:
Field
Value
Notes
Name
AMIDevOpsDebugOn
You must enter only this value for this field. However, this name is not case-sensitive.
Default Value
Clear this check box.
Description
Select this check box to run all the build steps in Debug mode.
For more information about configuring parameters, see step 2.b of the procedure to configure a project.
When building the project, select the AMIDevOpsDebugOn check box.