It's all about the answers!

Ask a question

Auto Accept on a Build Engine?


Patrick Oor (21) | asked Oct 16 '07, 8:06 a.m.
I setup a Build Engine and created a command line Build Definition. To be of value to the rest of the team, I think the Build Engine's workspace ought to be up to date with the latest team stream.

How can I setup a Build Engine which builds the latest change sets in the team stream? For example, is there a setting to "auto-accept" the latest change sets in the team stream?


Thanks,
Patrick.

9 answers



permanent link
Jean-Michel Lemieux (2.5k11) | answered Oct 16 '07, 8:45 a.m.
JAZZ DEVELOPER
There are two options available to you when you decide how to setup your builds. The first question, do you want to be able to reproduce old builds? If no, then you can run a build directly from a stream, in this mode the build should simply fetch the contents of the stream then build. If you want a build which remembers the configuration of what was built in a snapshot, then you need a separate build repository workspace which will auto-accept and create snapshots of what is being built.

There is new support in M3 so that the build engine can run the load/accept for you, using this new support it's easy to setup either types of builds. I'm not sure though if this is supported yet for command line builds, Ryan may have to jump in here.

permanent link
Ryan Manwiller (1.3k1) | answered Oct 16 '07, 12:25 p.m.
JAZZ DEVELOPER
I need a litte more information from you to answer the question.

Are you using M2 or M3 ?

Are you trying to do an Ant build, or invoke an arbitraty build command
(command line build) ?

permanent link
Maarte Oerlemans (665) | answered Oct 17 '07, 5:46 a.m.
We are using M3 and trying to setup a commandline build.

It is also interesting how this can be done with an ANT build. Can you give information on both build methods?

permanent link
Ryan Manwiller (1.3k1) | answered Oct 17 '07, 10:39 a.m.
JAZZ DEVELOPER
In M3, create a build definition and choose "Ant with Jazz SCM" in the
wizard.

Then, in the Jazz SCM page of the definition editor, select your workspace
and fetch destination. Notice the "accept before fetch" checkbox is checked
by default. This means the build will accept any incoming changes into the
build workspace before fetching and building.

For basics on getting started, see
https://jazz.net/learn/LearnItem.jsp?href=content/docs/build-setup/index.html

There is also a section on build in the client tour here:
https://jazz.net/learn/LearnItem.jsp?href=content/docs/client-tour/index.html

permanent link
Maarte Oerlemans (665) | answered Oct 18 '07, 3:26 a.m.
I find this option "Ant with Jazz SCM" in the M3 version. However, we are using a command line build. How can we implement an autoaccept for the command line build?

Currently we use a command file for starting the build. The content of the script is:

@echo off

rem: use the Visual studio cmd line to rebuild the entire solution
"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.COM" /rebuild Debug HelloWorld\HelloWorld.sln

rem: check that it worked
if errorlevel 1 goto failed

echo Success!! :-)
exit 0

:failed
echo FAILURE :-(
exit 1

I am not familar with Ant. Can you give an example how to create an Ant-build file for this example?

permanent link
Ryan Manwiller (1.3k1) | answered Oct 18 '07, 11:44 a.m.
JAZZ DEVELOPER
M3 did not include an option for "Command line with Jazz SCM". However, in
an earlier reply in this thread, you'll see I attached a patch jar that
enables this in M3.

permanent link
Maarte Oerlemans (665) | answered Oct 19 '07, 11:41 a.m.
I have copied the patch-jar file to the folder "D:\jazz\client\eclipse\jazz\jtd\eclipse\plugins"
After I started TeamConcert, the "Command Line with Jazz SCM" could not be selected during the creation of a new build. The selection items are: Ant, Ant with Jazz SCM, Commandline and General.

What went wrong?

permanent link
Ryan Manwiller (1.3k1) | answered Oct 19 '07, 1:49 p.m.
JAZZ DEVELOPER
Just to confirm its in the right location, you should have been overwriting
the existing jar that was there.

Next, try starting Team Concert with the -clean argument.




"moerlema" <maarte.oerlemans@philips-dot-com.no-spam.invalid> wrote in
message news:ffajjd$m89$1@localhost.localdomain...
I have copied the patch-jar file to the folder
"D:\jazz\client\eclipse\jazz\jtd\eclipse\plugins"
After I started TeamConcert, the "Command Line with Jazz
SCM" could not be selected during the creation of a new build.
The selection items are: Ant, Ant with Jazz SCM, Commandline and
General.

What went wrong?

permanent link
Maarte Oerlemans (665) | answered Oct 23 '07, 3:28 a.m.
The location was correct. I start TC with the -clean argument and get the new tab. The first test are running at this moment.
When will the "Command line with Jazz SCM" build definition be available in TeamConcert?
Thanks for your help.

Your answer


Register or to post your answer.