Configuring the project
This topic describes how to configure a project:
Before you begin
Perform the procedures described in the following topics:
To configure a project
Use the following procedure to configure the project to migrate schema changes and validate schema standards in Db2 for z/OS environment.
Tip
You can also update the configuration in the sample project provided by BMC. For more information, see Using the configuration provided in the sample project.
For more information, view the following Quick Courses: BMC AMI DevOps for Db2 - Configuring a Test Project BMC AMI DevOps for Db2 - Configuring Sample Change Management project BMC AMI DevOps for Db2 - Configuring a project to prompt for ID/Password |
- 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.
Important
Boolean Parameter, String Parameter, and Password Parameter are the typical parameter types for the variables you might use when working with the product.
Examples- AMIDevOpsDebugOn is a Boolean Parameter.
- Job_ID is a String Parameter.
- MF_PW is a Password Parameter. This parameter type provides encryption for passwords.
- For the new parameter, enter values for the following fields:
Name
Important
- String parameters with spaces in the name are not supported. You can include an underscore in the string parameter names.
- A double dollar sign can be used to produce a character string starting with, or containing, a dollar sign. That is, $$ yields $.
- Default Value
- Description
- Select the Build tab to add and configure the build steps as follows:
Click Add build step.
Important
has five main build steps and three supporting build steps.
The five main build steps are:
- Common - File Transmission
- Schema Mgmt for Db2 - Schema Change Migration
- Schema Mgmt for Db2 - Schema Standards
- Schema Mgmt for Db2 - Output Transmission
- Common - JCL Execution
The three supporting build steps are:
Best practice
Select one of the Common - Authentication build steps based on your Jenkins configuration.
- Common - Authentication
- Common - Authentication (Credential Store)
- Common - Clean Up
We offer the Common - Authentication (Credential Store) build step. This build step has the Login Credentials field that provides credentials saved in Jenkins Credential Store. For more information, see BMC AMI DevOps Common - Authentication (Credential Store).
When configuring projects, if you add one or more main build steps, you must also add the supporting build steps. You must add Common - Authentication or Common - Authentication (Credential Store) as the first build step and Common - Clean Up as the last build step. For more information, see Examples of how to add build steps during project configuration.
Add build steps and enter values for the fields:
Important
- You can run any or all build steps in Debug mode. For more information, see To run build steps in Debug mode.
When building the project, you can disable processing for one or more build steps except:
- Common - Authentication
- Common - Authentication (Credential Store)
- Common - Clean Up
For example, you can disable the Common - File Transmission build step when you are performing a comparison between two local catalogs. To enable this feature, select the Disable Build Step check box.
- To enter your mainframe password when building the project:
- Select the Provide Password via Build Parameter check box.
- Specify a parameter-based variable as the value of the Mainframe Password via Build Parameter field. For example, specify ${MF_PW}, where MF_PW is a Password Parameter variable, as the value of this field.
- To generate JCL but not execute it, you can select the Generate JCL Only check box in the Schema Mgmt for Db2 - Schema Change Migration and the Schema Mgmt for Db2 - Schema Standards build steps. For example, you can use this feature to validate the JCL before submitting it. The generated JCL is saved to the project workspace folder. If you select this option, you must also disable the subsequent build steps.
For any of the following fields, if you do not enter any path or enter the relative path, considers the default path of the workspace project folder.
Build step
Field
Common - Authentication
Plug-in Variables File Path
Common - File Transmission
Source PDS or Directory Name
Common - File Transmission
Destination PDS or Directory Name
Schema Mgmt for Db2 - Output Transmission
Destination Directory Name
Common - JCL Execution
Execution JCL PDS or Directory Name
For more information about the default path, see Default-path-for-Jenkins-projects-when-the-relative-path-is-specified-for-a-field.
Common - Authentication
Click here for information about configuring this build step
To configure the Common - Authentication build step
Enter values for the following fields:
Mainframe (host name or IP address)
Important
Ensure that you enter the corresponding mainframe IP address or host name of the LPAR in the SYSPLEX on which z/OSMF is running.
Port Number
Important
Ensure that you enter the corresponding port number of the LPAR in the SYSPLEX on which z/OSMF is running on the mainframe.
- Mainframe User ID
- Provide Password via Build Parameter
Select this check box if you want to enter your mainframe password when building the project. If you select this check box, you must enter a parameter as the value for the the Mainframe Password via Build Parameter field. - Mainframe Password
If you do not select the Provide Password via Build Parameter check box, enter your mainframe password in this field. Plug-in Variables File Path
Important
You can also enter a String Parameter variable in the Plug-in Variables File Path field. You can specify any of the following values for the variable:
- The full plug-in variables file path, including the file name
- Part of the plug-in variables file path
- The plug-in variables file name
See the following examples:
Example 1When configuring the project, you have added a String Parameter variable with the following field values:
Field
Value
Name
VARPROP
Default Value
/var/lib/AMA_Properties/AMA_DevOps.properties
Description
The value of this variable is the full plug-in variables file path, including the file name.
You can then enter ${VARPROP} in the Plug-in Variables File Path field.
Example 2When configuring the project, you have added a String Parameter variable with the following field values:
Field
Value
Name
VARPATH
Default Value
/var/lib/AMA_Properties
Description
The value of this variable is part of the plug-in variables file path and does not include the file name.
You can then enter ${VARPATH}/AMI_DevOps.properties in the Plug-in Variables File Path field.
Example 3When configuring the project, you have added a String Parameter variable with the following field values:
Field
Value
Name
VARFILE
Default Value
AMI_DevOps.properties
Description
The value of this variable is the plug-in variables file name and does not include the file path.
You can then enter /var/lib/AMA_Properties/${VARFILE} in the Plug-in Variables File Path field.
Important
AMI_DevOps.properties is the default name of the plug-in variables file. Your plug-in variables file can have any name but it must be a .properties file.
Common - Authentication (Credential Store)
Click here for information about configuring this build step
To configure the Common - Authentication (Credential Store) build step
Enter values for the following fields:
Mainframe (host name or IP address)
Important
Ensure that you enter the corresponding mainframe IP address or host name of the LPAR in the SYSPLEX on which z/OSMF is running.
Port Number
Important
Ensure that you enter the corresponding port number of the LPAR in the SYSPLEX on which z/OSMF is running on the mainframe.
Login Credentials
Important
In the Jenkins Credentials Provider: Jenkins > Add Credentials, we only support the Username with Password option in the Kind field.
Plug-in Variables File Path
Important
You can also enter a String Parameter variable in the Plug-in Variables File Path field. You can specify any of the following values for the variable:
- The full plug-in variables file path, including the file name
- Part of the plug-in variables file path
- The plug-in variables file name
See the following examples:
Example 1When configuring the project, you have added a String Parameter variable with the following field values:
Field
Value
Name
VARPROP
Default Value
/var/lib/AMA_Properties/AMA_DevOps.properties
Description
The value of this variable is the full plug-in variables file path, including the file name.
You can then enter ${VARPROP} in the Plug-in Variables File Path field.
Example 2When configuring the project, you have added a String Parameter variable with the following field values:
Field
Value
Name
VARPATH
Default Value
/var/lib/AMA_Properties
Description
The value of this variable is part of the plug-in variables file path and does not include the file name.
You can then enter ${VARPATH}/AMI_DevOps.properties in the Plug-in Variables File Path field.
Example 3When configuring the project, you have added a String Parameter variable with the following field values:
Field
Value
Name
VARFILE
Default Value
AMI_DevOps.properties
Description
The value of this variable is the plug-in variables file name and does not include the file path.
You can then enter /var/lib/AMA_Properties/${VARFILE} in the Plug-in Variables File Path field.
Important
AMI_DevOps.properties is the default name of the plug-in variables file. Your plug-in variables file can have any name but it must be a .properties file.
Common - File Transmission
Click here for information about configuring this build step
To configure the Common - File Transmission build step
Enter values for the following fields:
- Direction of File Transfer
Select one of the following options:- Send file to mainframe
- Receive file from mainframe
- Source PDS or Directory Name
- Source Member or File Name
- Destination PDS or Directory Name
- Destination Member or File Name
- Direction of File Transfer
Schema Mgmt for Db2 - Schema Change Migration
Click here for information about configuring this build step
To configure the Schema Mgmt for Db2 - Schema Change Migration build step
Use the following procedure:
- In the General Input Fields section, enter values for the following fields:
- SSID
- Work ID Owner
- Work ID Name
- (Optional) If you select the Add comment to Work ID check box, enter a value for the Work ID comment text field.
- In the Compare section, if you have not selected the Skip Comparison check box, enter values for the following fields:
Comparison Type
Select one of the following options:- Local Catalog to DDL File with DDL File as Scope
- Local Catalog to Migrate Worklist with Worklist as Scope
- Local Catalog to Baseline
- Local Catalog to Local Catalog with Objects as Scope
- Local Catalog to Local Catalog with Baseline Profile as Scope
- Local Catalog to Local Catalog with Outbound Migrate Profile as Scope
- Local Catalog to Remote Catalog with Objects as Scope
- Local Catalog to Remote Catalog with Baseline Profile as Scope
- Local Catalog to Remote Catalog with Outbound Migrate Profile as Scope
For more information about the types of comparisons that you can perform using the product, see the BMC AMI Change Manager for Db2.
- Enter values for the fields in the following sections. Depending on the comparison type you selected, some of the fields are optional. If you do not enter values for the required fields, a warning is displayed.
Compare1 Input Fields
Important
If you selected a comparison type that has objects as the scope, select one of the following values in the Object Type (applies to Compare1 and Compare2) field:
Object type value
Definition
SG
Storage group
DB
Database
TS
Table space
TB
Table
IX
Index
VW
View
SY
Synonym
AL
Alias
SP
Stored procedure
- Object Name Part 1 for Compare1
- Object Name Part 2 for Compare1
- Object Name Part 3 for Compare1
- Compare1 DDL PDS and Member Name
- Compare1 Baseline Name
- Compare1 Baseline Profile (SCOPE1)
- Compare1 Outbound Migrate Profile (SCOPE1)
- Compare2 Input Fields
- Compare2 Catalog (SSID)
- Object Name Part 1 for Compare2
- Object Name Part 2 for Compare2
- Object Name Part 3 for Compare2
- Compare2 DDL/Worklist PDS and Member Name
- Compare2 Baseline Name
- Compare2 Baseline Profile (SCOPE2)
- Compare2 Outbound Migrate Profile (SCOPE2)
- If you select the Use Outbound Migrate Profile (applied before comparison) check box, enter a value for the Outbound Migrate Profile (applied before comparison) field.
- (Optional) If you select the Add comment to Compare output check box, enter a value for the Compare comment text field.
- Post Compare
If you select the Use Outbound Migrate Profile (applied after comparison) check box, enter a value for the Outbound Migrate Profile (applied after comparison) field.
- In the Import Input Fields section, enter values for the following fields:
- CDL PDS and Member Name
- If you select the Use Inbound Migrate Profile check box, enter a value for the Inbound Migrate Profile field.
- In the Analysis Input Fields section, enter values for the following fields:
- Worklist PDS and Member Name
- (Optional) Impact Report PDS and Member Name
- In the Execution JCL Generation Input Fields section, enter values for the following fields:
- Execution JCL PDS and Member Name
- Enter values for the fields in the following sections:
Before Making Schema Changes
Select one of the following options in the Select Baseline Type Before Execution field:- None
- Pre-Execution baseline
- Full Recovery baseline
For more information about baselines, see the BMC AMI Change Manager for Db2.
If you are creating a Pre-Execution or full-recovery baseline, enter values for the following fields:- Baseline Profile Name (before execution)
- Baseline Name (before execution)
- Rollback Compare
If you select the Generate CDL to Rollback Schema Changes check box, enter a value for the Rollback PDS and Member Name (CDL) field. - After Making Schema Changes
If you select the Create Baseline After Execution check box, enter values for the following fields:- Baseline Profile Name (after execution)
- Baseline Name (after execution)
In the Job Information section, enter values for the following fields:
- Job Card
- JCL
The product generates values for the following fields based on your input for the Comparison Type and Object Type fields and the fields in the Import Input Fields, Analysis Input Fields and Execution JCL Generation Input Fields sections.
- Compare Input Stream
- Import Input Stream
- Analysis Input Stream
- JCL Generation Input Stream
- In the Advanced Settings section, enter values for the following fields:
- Acceptable Return Code
- Maximum Job Wait Time
Important
- You can select one of the following check boxes to apply change rules from a migrate profile:
- Use Outbound Migrate Profile (applied after comparison) in the Post Compare section. The migrate profile is applied to the CDL file after comparison.
- Use Inbound Migrate Profile in the Import Input Fields section. The migrate profile is applied to the CDL data during import to an ALTER work ID.
- You can only select the Generate CDL to Rollback Schema Changes check box if you have selected the Create Baseline Before Execution check box.
- lets you roll back the schema changes implemented by the current project build. For more information about rolling back schema changes, see Rolling-back-implemented-schema-changes-in-Jenkins.
- In the General Input Fields section, enter values for the following fields:
Schema Mgmt for Db2 - Schema Standards
Click here for information about configuring this build step
To configure the Schema Mgmt for Db2 - Schema Standards build step
Use the following procedure:
- In the General Input Fields section, enter values for the following fields:
- SSID
Schema Standards Rule Set name
Important
The Schema Standards rule sets and rules are defined and managed via the product. For more information, see Managing schema rule sets
- Violation Response
- In the Schema to Analyze section, enter values for the following fields:
- Source of Schema
Select one of the following options:- DDL
- CDL
- Migrate Worklist
- Catalog using Migrate Profile as scope
- Catalog using Baseline Profile as scope
Input for Schema Source
Important
The value for the Input for Schema Source depends on the source of the schema you select:
- If you select DDL, CDL, or Migrate Worklist in the Source of Schema field, enter the partitioned data set (PDS) name and member which contain the DDL, CDL, or Migrate Worklist that Schema Standards analyzes.
- If you select Catalog using Migrate Profile or Baseline Profile as scope in the Source of Schema field, enter the two-part name (owner. name) of the profile that contains the scope rules to identify the objects in the Db2 catalog that Schema Standards analyzes.
- Source of Schema
- In the Post Schema Analysis section, enter the values for the following fields:
- (Optional) If you select the Use Outbound Migrate Profile (applied after objects are read) check box, enter a value for the Outbound Migrate Profile (applied after objects are read) field.
- In the Job Information section, enter values for the following fields:
- Job Card
- Schema Standards Input Stream
- Debug Input Stream
- JCL
- In the Advanced Settings section, enter a value for the Maximum Job Wait Time field.
- In the General Input Fields section, enter values for the following fields:
Schema Mgmt for Db2 - Output Transmission
Click here for information about configuring this build step
To configure the Schema Mgmt for Db2 - Output Transmission build step
Enter values for the following fields:
Important
The Schema Mgmt for Db2 - Output Transmission build step lets you download any or all of the generated artifacts (CDL file, worklist, impact report, and execution JCL) to the destination directory. To download an artifact, enter its respective source PDS name.
You must enter the source PDS name for at least one artifact.
- Source PDS Name (CDL)
- Source PDS Name (WORKLIST)
- Source PDS Name (EXEC_JCL)
- Source PDS Name (IMPACT REPORT)
- Source Member Name
- Destination Directory Name
- Destination File Name
Common - JCL Execution
Click here for information about configuring this build step
To configure the Common - JCL Execution build step
Enter values for the following fields:
- Run Step regardless of previous Compare results check box
Source of JCL
Important
You can select any one of the following options in the Source of JCL field:
- (Default) Submit JCL from file or member uses the JCL defined in the following fields:
- Execution JCL PDS or Directory Name
- Execution JCL Member or File Name
- Submit free-form JCL defined below uses the JCL statement defined in the Free-form JCL field.
- (Default) Submit JCL from file or member uses the JCL defined in the following fields:
- Execute JCL from Mainframe PDS check box
- Execution JCL PDS or Directory Name
- Execution JCL Member or File Name
- Free-form JCL
- Acceptable Return Code
- Maximum Job Wait Time
Tip
In some application or database environments (for example, QA, System Test or Production environments), you might need to review the impact and accountability of your project or pipeline. You can do this by reviewing the generated artifacts (impact report, worklist, and execution JCL) before running the Common - JCL Execution build step to apply the schema changes.
You can verify the changes to your schema in the worklist and review the execution JCL before executing it as follows:
- Configure the project.
- Disable the Common - JCL Execution build step.
- Build the project. For more information, see To build a project.
- After your project is built successfully, review the worklist and execution JCL. For more information, see To review the output of a project.
- Run only the execution JCL by following these steps:
- Open the existing project for configuration.
- Disable all the build steps except Common - JCL Execution.
- We recommend you to use Run Step regardless of previous Compare results check box appropriately.
- Build the project. For the Job_ID parameter, enter the same value that you used in the build that generated the worklist and execution JCL.
You can also include a prompt for approval to your automated process workflow to allow for review when using along with other plug-ins as part of a Jenkins pipeline.
For more information, view the following Quick Courses:
- BMC AMI DevOps for Db2 - Building a Pipeline - Part 1: Illustrates how to configure projects to compare databases and generate rollback artifacts without including the Common - JCL Execution build step
BMC AMI DevOps for Db2 - Building a Pipeline - Part 2: Illustrates how to use as part of a pipeline
Important
This example also illustrates how to configure your pipeline script to send an email with the results of the comparison to an approver.
Alternatively, you can configure the pipeline script to send an email to the approver before building the project that creates rollback artifacts. This would enable the approver to review the artifacts for impact and accountability before the pipeline continues running and implements the schema changes.
- Run Step regardless of previous Compare results check box
- Common - Clean Up
Add 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.
Important
You can either use the Common – Authentication build step or the Common – Authentication (Credential Store) build step based on your Jenkins configuration.
You must add the following build steps sequentially during configuration for a project that contains Schema Change Migration build step:
Serial number | Type | Build step | Notes |
---|---|---|---|
1 | Supporting build step | Common - Authentication | This must be the first build step that you add when configuring the project. |
2 | Main build steps | Common - File Transmission | This step is optional depending on the type of comparison. |
3 | Schema Mgmt for Db2 - Schema Change Migration |
| |
4 | Schema Mgmt for Db2 - Output Transmission | This step is optional. | |
5 | Common - JCL Execution |
| |
6 | Supporting build step | Common - Clean Up | This must be the last build step that you add when configuring the project. |
You must add the following build steps sequentially during configuration for a project that contains Schema Standards build step:
Serial number | Type | Build step | Notes |
---|---|---|---|
1 | Supporting build step | Common - Authentication | This must be the first build step that you add when configuring the project. |
2 | Main build steps | Common - File Transmission | This step is optional, if you are sending a file from the client to the mainframe to be used as input to Schema Standards. |
3 | Schema Mgmt for Db2 - Schema Standards |
| |
6 | Supporting build step | Common - Clean Up | This must be the last build step that you add when configuring the project. |
You must add the following build steps sequentially during configuration for a project that contains all main build steps:
Serial number | Type | Build step | Notes |
---|---|---|---|
1 | Supporting build step | Common - Authentication | This must be the first build step that you add when configuring the project. |
2 | Main build steps | Common - File Transmission | This step is optional, if you are sending a file from the client to the mainframe for Schema Change Migration and/or Schema Standards. |
3 | Schema Mgmt for Db2 - Schema Change Migration |
| |
| Schema Mgmt for Db2 - Schema Standards | This step is optional depending on the source of the schema. | |
4 | Schema Mgmt for Db2 - Output Transmission | This step is optional. | |
5 | Common - JCL Execution |
| |
6 | Supporting build step | Common - Clean Up | This must be the last build step that you add when configuring the project. |
The following examples are for configuration of a project that contains one or more of the five main build steps. When configuring a project, if you add one or more main build steps, you must also add both the supporting build steps. You must add Common - Authentication as the first build step and Common - Clean Up as the last build step.
Click here for projects that contain only the BMC AMI DevOps Common - File Transmission main build step
You must add the following build steps sequentially during configuration:
Serial number | Type | Build step | Notes |
---|---|---|---|
1 | Supporting build step | Common - Authentication | This must be the first build step that you add when configuring the project. |
2 | Main build step | Common - File Transmission |
|
3 | Supporting build step | Common - Clean Up | This must be the last build step that you add when configuring the project. |
Click here for projects that contain only the BMC AMI DevOps Schema Mgmt for Db2 - Schema Change Migration main build step
You must add the following build steps sequentially during configuration:
Serial number | Type | Build step | Notes |
---|---|---|---|
1 | Supporting build step | Common - Authentication | This must be the first build step that you add when configuring the project. |
2 | Main build step | Schema Mgmt for Db2 - Schema Change Migration |
|
3 | Supporting build step | Common - Clean Up | This must be the last build step that you add when configuring the project. |
Click here for projects that contain only the BMC AMI DevOps Schema Mgmt for Db2 - Schema Standards main build step
You must add the following build steps sequentially during configuration:
Serial number | Type | Build step | Notes |
---|---|---|---|
1 | Supporting build step | Common - Authentication | This must be the first build step that you add when configuring the project. |
2 | Main build step | Schema Mgmt for Db2 - Schema Standards |
|
3 | Supporting build step | Common - Clean Up | This must be the last build step that you add when configuring the project. |
Click here for projects that contain only the BMC AMI DevOps Schema Mgmt for Db2 - Output Transmission main build step
You must add the following build steps sequentially during configuration:
Serial number | Type | Build step | Notes |
---|---|---|---|
1 | Supporting build step | Common - Authentication | This must be the first build step that you add when configuring the project. |
2 | Main build step | Schema Mgmt for Db2 - Output Transmission |
|
3 | Supporting build step | Common - Clean Up | This must be the last build step that you add when configuring the project. |
Click here for projects that contain only the BMC AMI DevOps Common - JCL Execution main build step
You must add the following build steps sequentially during configuration:
Serial number | Type | Build step | Notes |
---|---|---|---|
1 | Supporting build step | Common - Authentication | This must be the first build step that you add when configuring the project. |
2 | Main build step | Common - JCL Execution |
|
3 | Supporting build step | Common - Clean Up | This must be the last build step that you add when configuring the project. |
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.
For more information, view the Quick Course BMC AMI DevOps for Db2 - Defining Sample Projects to Jenkins. |
Follow this procedure to use the sample project:
Copy the project folder to the following directory:
Click here if you are using Jenkins on Windows
installationDirectory\Jenkins\jobs
In this path, the installationDirectory variable represents the directory on the system on which Jenkins is installed.Click here if you are using Jenkins on Linux
/installationDirectory/jenkins/jobs
In this path, the installationDirectory variable represents the directory on the system on which Jenkins is installed.
- 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-Schema-Change-Migration and Sample-projects-for-Schema-Standards.
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.
Important
Selecting the AMIDevOpsDebugOn check box runs all the build steps in Debug mode even if you have not selected the Run Step in Debug Mode check box when configuring any of the build steps.
-
13.1
- 12.1