Convert PDS to zJenkins Project - openmainframeproject/polycephaly GitHub Wiki

Conversion process from PDS to zJenkins project
  1. Create new Git repository on the Git server for the new project
  2. Create new Java project in Eclipse
    1. You can use whatever type of project you wish, in the example, we use Java since the project could contain Java for z/OS
  3. Create src folders
    1. src/main/zOS, make zOS folder in build path 'use as Source Folder'
      1. build source packages, for asm, BMS, cobol and eztrieve, have additional nodes, for example
        1. com.ibm.cobol.v4opts#1 package can contain Cobol source to Compile with v4 and one set of Cobol Options
        2. com.ibm.cobol.v4opts#2 package can contain Cobol source to Compile with v4 and another set of Cobol Options
        3. com.ibm.cobol.v6opts package can contain Cobol source to Compile with v6
        4. M more information see the "ProjectName".properties information below
    2. build, file build.groovy, which can be copied from the sample MortgageApplication/build
      1. There are no changes required to the build.groovy. It calls the zJenkins ZosAppBuild
    3. conf, has two files, package.txt and "Jenkins project Name".properties
      1. package.txt contains the list source files to build. Generics can be used
      2. "Jenkins project Name".properties contains custom project only properties.
      3. By default, the name must match the Jenkins project name
      4. Some custom project override properties
        1. devHLQ is the High Level Qualifier for the build PDS file names
        2. ddioName is the name of the Xpediter DDIO file, will get deleted/defined, if Xpediter compiled is specified, during each build run
        3. appCopyLibs is a list of COPYBOOK libraries to used during the Compile process
        4. appSysLibs is a list of LOADLIBs or OBJECT libraries used during the LinkEdit process
        5. appMacLibs is a list of MACLIB libraries used during the Assembly process
        6. Cobolv4Opts will invoke Cobol v4.2 compile for each Cobol source file specified using the specified Compiler Options
        7. LKEDCNTL will add Linkedit control cards, pulls the *.nk file for the specified source files
        8. Cobolv6Opts will invoke Cobol v6 compile for each Cobol source file specified using the specified Compiler Options
        9. LinkOpts will override the default LinkEdit options for each source file specified
        10. AssemblerOpts will override the default Assembler options for each source file specified
        11. EztrieveOpts will override the default EasyTrieve options for each source file specified
        12. Xpediter will cause Xpediter Compile to used, plus delete/defined the DDIO file
  4. Adding the source files to Eclipse project
    1. Download the source files
    2. Move them into the correct packages
    3. Add the correct suffix, for Cobol programs .cbl
  5. Update the package.txt and "Jenkins Project Name".properties files accordingly
  6. Create Jenkins project, Create Jenkins Project
  7. Save the project to Git server. See the Git repository or Git documentation
  8. Build the Jenkins project
⚠️ **GitHub.com Fallback** ⚠️