Skip to main content

Copy in the example source

Step 3 of the IBM i reference-app setup. Your environment is built and its connection points at your own repository — but that repo is still empty. Here you copy the example source into it with a task, then detach the reference app.

This picks up after you've set up your repository and filled in the connection.

What you'll need

  • Permission to run tasks and edit the environment. See Environments.
  • Your repository added and set as the connection's Build Repo, and the environment built (the two earlier steps).

Copy the example source into your repo

Create a task in this environment and ask the agent to bring the source across, for example:

Copy the ibmi application directory (the RPG, CL, and DDS source members, the Profound UI htdocs files, and the codermake build rules) into my repository.

If your project uses a particular layout, tell the agent where to put it. Whatever you choose, note the destination — if the source lands in a subdirectory, set the connection's Build Directory to it (see step 2).

When the task finishes, review the diff and Approve. In the approve dialog you choose how the change lands — push to a branch, a new branch, or Create pull request (which you then merge). Once it's pushed, your repository contains the source.

note

The agent only copies files into your repo, and nothing is pushed until you review and approve it — so you stay in control of exactly what lands in your repository.

Then Build → Build Now → Save and create a task to confirm it now compiles from your source.

Detach the reference-apps repo

Once your repo builds on its own, coderflow-reference-apps isn't doing anything — the source was copied into your repo. On the Repositories tab, remove the reference repo, then Build → Build Now → Save. The environment now builds from your repo alone.

Back in the setup wizard, tick I've completed this step.


Next steps

You now have the IBM i example source in your own repository and an environment that builds it. From here, create tasks to build out your real application — the agent works against your code, your standards, and your repo's history. To compile and run against the shared demo data, install the CFDEMO base library.