Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Auto Accept on a Build Engine?

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.

0 votes



9 answers

Permanent link
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.

0 votes


Permanent link
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) ?

0 votes


Permanent link
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?

0 votes


Permanent link
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

0 votes


Permanent link
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?

0 votes


Permanent link
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.

0 votes


Permanent link
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?

0 votes


Permanent link
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?

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Oct 16 '07, 8:06 a.m.

Question was seen: 7,729 times

Last updated: Oct 16 '07, 8:06 a.m.

Confirmation Cancel Confirm