Welcome to the Jazz Community Forum
Requesting a build of a particular baseline

Hello...
I have a Build Definition that I can pass a parameter to. It builds, then, depending on the parameter, copies the artifacts to one of two servers: development or QA.
Our process is this:
We first create a baseline "B0", and do a "development" build, which places the artifacts on a development server.
Developers work on new features, delivering changesets to the stream.
Now, we want to do another build, to make our QA server look exactly like the development server.
How do we build the same artifacts from the B0 baseline, without also building the newly delivered changesets?
My guess:
On the build definition, uncheck "Accept latest changes before loading"
and
On the repository workspace that is associated with the build, click the Component(s) that we want to build, and replace them with the baseline we want to build.
then
Request a build.
However, I seem to be getting the additional changesets that were delivered to the stream.
Thoughts?
Thanks...
Travis
I have a Build Definition that I can pass a parameter to. It builds, then, depending on the parameter, copies the artifacts to one of two servers: development or QA.
Our process is this:
We first create a baseline "B0", and do a "development" build, which places the artifacts on a development server.
Developers work on new features, delivering changesets to the stream.
Now, we want to do another build, to make our QA server look exactly like the development server.
How do we build the same artifacts from the B0 baseline, without also building the newly delivered changesets?
My guess:
On the build definition, uncheck "Accept latest changes before loading"
and
On the repository workspace that is associated with the build, click the Component(s) that we want to build, and replace them with the baseline we want to build.
then
Request a build.
However, I seem to be getting the additional changesets that were delivered to the stream.
Thoughts?
Thanks...
Travis
4 answers

What you describe below should work.
When you say "I seem to be getting additional change sets", when is this
happening?
In particular, does the build workspace have the right baseline before
the build, but the wrong baseline after the build? (i.e. have you
confirmed that it is the build step that is adding the additional change
sets?
One way to make sure the build workspace is not modified by the build is
to remove the flow targets from the build workspace. Then even if
"Accept latest changes before loading" is running, it will have no
stream from which to accept changes.
Cheers,
Geoff
travman wrote:
When you say "I seem to be getting additional change sets", when is this
happening?
In particular, does the build workspace have the right baseline before
the build, but the wrong baseline after the build? (i.e. have you
confirmed that it is the build step that is adding the additional change
sets?
One way to make sure the build workspace is not modified by the build is
to remove the flow targets from the build workspace. Then even if
"Accept latest changes before loading" is running, it will have no
stream from which to accept changes.
Cheers,
Geoff
travman wrote:
Hello...
I have a Build Definition that I can pass a parameter to. It builds,
then, depending on the parameter, copies the artifacts to one of two
servers: development or QA.
Our process is this:
We first create a baseline "B0", and do a
"development" build, which places the artifacts on a
development server.
Developers work on new features, delivering changesets to the stream.
Now, we want to do another build, to make our QA server look exactly
like the development server.
How do we build the same artifacts from the B0 baseline, without also
building the newly delivered changesets?
My guess:
On the build definition, uncheck "Accept latest changes before
loading"
and
On the repository workspace that is associated with the build, click
the Component(s) that we want to build, and replace them with the
baseline we want to build.
then
Request a build.
However, I seem to be getting the additional changesets that were
delivered to the stream.
Thoughts?
Thanks...
Travis

When you say "I seem to be getting additional change sets", when is this happening? In particular, does the build workspace have the right baseline before the build, but the wrong baseline after the build?
Yes, that is exactly the case.
One way to make sure the build workspace is not modified by the build is to remove the flow targets from the build workspace.
This worked for me. Thanks for your help!

I agree, it should work with the steps you give. No other changes should be accepted into the build workspace if you've unchecked "Accept latest changes before loading"
If it's not working as advertised, please file a work item agains RTC / Build.
Geoff's suggestion of removing the component flows is worth trying out too, to help narrow down the problem.
If it's not working as advertised, please file a work item agains RTC / Build.
Geoff's suggestion of removing the component flows is worth trying out too, to help narrow down the problem.