IBMi workitem driven build
Hi,
I'm running RTC 4.0.0.1 and RDP 8.5. Configured project area in order to manage RPG applications lifecycle.
My question is : how to start build on iseries box of sources files (all and only) contained in changeset associated to a specific workitem (change request) ?
Thanks in advantage for any suggestion.
Accepted answer
If you want to have a build scoped to individual changesets, control the changesets coming into the stream you are going to build from. For example:
Hope this helps,
- Create a stream to control the incoming content.
- If you're doing incremental builds into libraries that already have content, set the content of this stream to be at a snapshot level consistent with what is in the libraries you're going to be building into. [Or, if you're using the dependency build, you could build into empty libraries with the library list setup to find referenced objects if needed.]
- Create a build workspace to accept incoming changesets to build.
- Create a build definition to execute this changeset-scoped build.
- The release engineer who is running these builds will be responsible for selecting a changeset to be built, and delivering that to this stream. Perhaps you'll have another integration stream where developers can deliver changes at will, and the release engineer who is running this changeset-scoped build will select the changeset to build.
- Request the build. The build will accept this single incoming changeset, load the source to the referenced load libraries, and build it. Voila! A work item scoped build!
Obviously, this model doesn't scale well if you have thousands of changesets coming in and your poor release engineer is building them all one at a time. But it might be useful where there is limited, tightly-controlled change to mature code.
Also, how the release engineer selects the changesets to build depends on your process. E.g. you could have someone approve workitems for changesets ready to build, and configure a Work item query for the release engineer to find "ready-to-build" changesets to deliver to the work-item-scoped-build stream.
Sean.