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.
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
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.
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.
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
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
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?
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?
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?
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?
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...
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?