Running Dependency-Based user builds from Z Open Editor
Z Open Editor user build allows you to run builds directly out of the editor remotely on z/OS UNIX System Services with IBM Dependency Based Build.
-
Run Ansible automation to remotely set up user build on the z/OS UNIX system of the VSI by running the playbook:
cd ansible ansible-playbook -i inventories --extra-vars "host=devtest1" dbb-prepare-userbuild.yml
-
Review the script and its output. You can also set up user build manually as documented in Setting up the user build
.
The script clones a Git repository in
/u/ibmuser/projects
and copies a configuration file into that repository. This configuration is specific to the z/OS system that you are using. All the required values are provided for the z/OS development and test stock image in the Ansible inventory by the fileansible/inventories/host_vars/devtest1.yml
.The output of the
dbb-prepare-userbuild.yml
playbook provides JSON to be copied into your VS Code user settings. They containuser-
andsystem-specific
values for Z Open Editor to start a build. -
Open the
zapp.yaml
file and review thedbb-userbuild
entry.-
If you are not using IBM Wazi Sandbox, remove the value
-DBB_PERSONAL_DAEMON
from the command. -
Check the
buildScriptArgs
and ensure that theapplication
value matches the name of the sample repository folder that you cloned and opened in VS Code at the beginning of this tutorial. The default value iszopeneditor-sample
.
-
-
Open the
SAM1
program in the editor and right-click Prepare IBM User Build. The Output view will show the progress of creating folders and copying over properties from the localapplication-conf
directory, which needs to be done only once or after the settings are changed. -
After the operation succeeds, right-click Run IBM User Build to build the program
SAM1
and download the logs file.
You can now make program changes with Z Open Editor and build the application with User Build. To run the application, you can also use the Ansible playbook that copies required test data over to MVS. The Ansible playbook then executes a JCL that
is also available in the IBMUSER.SAMPLE.JCL(RUN)
partitioned data set. After you have the test data in place, you can repeatedly right-click to execute the RUN
JCL in Zowe Explorer.