Building a CICS bundle, application, application binding, or platform
You can automate the build of CICS projects, including CICS bundle projects, application projects, application binding projects, and platform projects by writing a build script that calls the CICS build toolkit.
Before you begin
CICS build toolkit needs write access to the source projects as it might modify them as part of the build process. Make sure that you use a temporary copy of the source projects that can be discarded after the build completes. For more information about preparation, see Preparing to use the CICS build toolkit.
If you are building Java projects from source, you need to know the target CICS release and have any additional Java library dependencies available. Alternatively, you can copy built versions of those Java projects, for example .jar .wab .eba or .ear files, into the CICS bundle root directory before you run the CICS build toolkit.
About this task
Use this procedure after you develop your applications and before you deploy your applications as part of a continuous delivery model. Run cicsbt as part of your build automation. Alternatively, run cicsbt at the shell on UNIX or Linux®, or cicsbt.bat at the command prompt on Windows.
Procedure
Results
The
CICS
projects
and any referenced projects are built in the output directory
within subdirectories that follow the naming convention
symbolic.name_version, for example,
com.ibm.cics.test.bundle_1.0.0
.
Example
/output/dir/
applications/
my.application_1.0.0
my.other.application_1.0.0
bundles/
my.application.bundle_1.0.0
/output/dir/
applications/
my.application_1.0.0
bundles/
my.application.bundle_1.0.0
testplatform/
applications/
my.other.application_1.0.0
bindings/
my.other.application.test.binding_1.0.0
bundles/
my.other.application.bundle_1.0.0
my.other.application.another.bundle_1.0.0
The output directory that is created by the CICS build toolkit has the same structure as the platform home directory (PLATHOME). For more information about the platform home directory structure, see Platform directory structure in z/OS UNIX.
my.application.binding(1.0.1)
and any associated applications that are found in the
input directory:
cicsbt --input my/source/dir/* \
--build my.application.binding(1.0.1) \
--output /my/output/dir
To
use this example on
Windows, enter all parameters on the
same line as the
CICS build toolkit
call. Paths that
contain spaces must be within quotation marks.
What to do next
If your built projects contain variables, you must resolve the variables before they are installed into CICS. For more information about variable substitution, see Resolving variables in a CICS bundle.